Skip to content
yellow · warm

#c48a13

a dark, electric yellow · warm · closest name: Dark Goldenrod

Token name suggestion: Slate Honey

RGB
196, 138, 19
HSL
40°, 82%, 42%
CMYK
0, 30, 90, 23
Luminance
0.2996

#c48a13 is a dark electric yellow, 40° on the wheel and 9/100 on the cool side. Put black text on it (6.99:1). As text it scores 3.00:1 on white — large text only. Nearest name is Dark Goldenrod, nearest Tailwind family is amber.

hsl(40 82% 42%)rgb(196 138 19)Base step 700AA inkWarm

At a glance

Every number on this page in one read: what #c48a13 is made of, how bright it looks, and which way it leans.

Hex
#c48a13
Hue
40°
yellow
Saturation
82%
electric
Lightness
42%
dark
Brightness
77%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2996
WCAG relative
Temperature
Warm
9/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
6.99:1
Closest name
Dark Goldenrod
ΔE2000 2.9
Chroma
65.0
LCH, 0–130ish
OKLCH L
0.674
perceptual lightness
Tailwind
amber
500 · ΔE 10.1
Web-safe
#CC9900
nearest of 216
Where it sits
Hue40° of 360°
Saturation82%
Lightness42%
Saturation × lightness field

Left edge is grey, right edge is full chroma; top is white, bottom is black. The dot is #c48a13.

Temperature
Warm ← → Cool9% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Luminance by channel
Red39%
Green61%
Blue0%

Green carries most of what the eye calls brightness — that is why WCAG weights it 0.7152.

Every format

HEX#c48a13
HEX (8-digit)#c48a13ff
RGBrgb(196, 138, 19)
RGBArgba(196, 138, 19, 1)
HSLhsl(40, 82%, 42%)
HSV / HSBhsv(40, 90%, 77%)
HWBhwb(40 7% 23%)
CMYKcmyk(0%, 30%, 90%, 23%)
LABlab(61.6 13.2 63.6)
LCHlch(61.6 65.0 78.3)
OKLCHoklch(0.674 0.136 77.8)
XYZ (D65)xyz(31.97, 29.96, 4.72)
Decimal12880403
Display P3color(display-p3 0.769 0.541 0.075)
Web-safe#CC9900

Copy-ready code

every platformclick to select
/* CSS */
color: #c48a13;
background-color: #c48a13;
/* CSS custom property */
--brand: #c48a13;
/* Tailwind (arbitrary) */
class="text-[#c48a13] bg-[#c48a13]"
/* SCSS */
$brand: #c48a13;
/* SwiftUI */
Color(red: 0.769, green: 0.541, blue: 0.075)
/* UIKit */
UIColor(red: 0.769, green: 0.541, blue: 0.075, alpha: 1)
/* Android XML */
<color name="brand">#C48A13</color>
/* Android Compose */
Color(0xFFC48A13)
/* Flutter */
Color(0xFFC48A13)
/* Python / OpenCV (BGR) */
(19, 138, 196)
/* Python / PIL (RGB) */
(196, 138, 19)
/* Java AWT */
new Color(196, 138, 19)
/* .NET */
Color.FromArgb(255, 196, 138, 19)
/* OpenGL / Unity (0–1) */
(0.7686f, 0.5412f, 0.0745f, 1f)
/* LaTeX */
\definecolor{brand}{RGB}{196,138,19}
modern cssclick to select
/* mix without leaving CSS */
background: color-mix(in oklab, #c48a13 85%, white);
border-color: color-mix(in oklab, #c48a13 40%, transparent);
/* theme-aware in one line */
color: light-dark(#74520B, #EEE5D3);
/* relative colour syntax */
--hover: hsl(from #c48a13 h s calc(l - 7));

Design tokens

The same ramp in the four formats a team actually needs. Paste one and the whole palette lands with it.

css custom propertiesclick to select
:root {
  --brand-50: #FCF9F2;
  --brand-100: #FAF3E6;
  --brand-200: #F6E6C6;
  --brand-300: #F5D799;
  --brand-400: #F0C366;
  --brand-500: #EBAF32;
  --brand-600: #DF9D16;
  --brand-700: #c48a13;
  --brand-800: #95690E;
  --brand-900: #6C4D0F;
  --brand-950: #433009;
  --brand: #c48a13;
  --brand-ink: #000000;
  --brand-surface: #FAF8F4;
  --brand-border: #EDDEC0;
  --brand-hover: #A47310;
  --brand-pressed: #835C0D;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-surface: #241F14;
    --brand-ink: #EEE5D3;
  }
}
tailwind.config.jsclick to select
theme: {
  extend: {
    colors: {
      brand: {
        50: '#FCF9F2',
        100: '#FAF3E6',
        200: '#F6E6C6',
        300: '#F5D799',
        400: '#F0C366',
        500: '#EBAF32',
        600: '#DF9D16',
        700: '#c48a13',
        800: '#95690E',
        900: '#6C4D0F',
        950: '#433009',
        DEFAULT: '#c48a13',
      },
    },
  },
}
scss mapclick to select
$brand: (
  '50': #FCF9F2,
  '100': #FAF3E6,
  '200': #F6E6C6,
  '300': #F5D799,
  '400': #F0C366,
  '500': #EBAF32,
  '600': #DF9D16,
  '700': #c48a13,
  '800': #95690E,
  '900': #6C4D0F,
  '950': #433009,
);
$brand-base: #c48a13;
$brand-ink: #000000;

@function brand($step) { @return map-get($brand, $step); }
w3c design tokens (json)click to select
{
  "color": {
    "brand": {
      "50": { "$value": "#FCF9F2", "$type": "color" },
      "100": { "$value": "#FAF3E6", "$type": "color" },
      "200": { "$value": "#F6E6C6", "$type": "color" },
      "300": { "$value": "#F5D799", "$type": "color" },
      "400": { "$value": "#F0C366", "$type": "color" },
      "500": { "$value": "#EBAF32", "$type": "color" },
      "600": { "$value": "#DF9D16", "$type": "color" },
      "700": { "$value": "#c48a13", "$type": "color" },
      "800": { "$value": "#95690E", "$type": "color" },
      "900": { "$value": "#6C4D0F", "$type": "color" },
      "950": { "$value": "#433009", "$type": "color" }
    },
    "brandInk": { "$value": "#000000", "$type": "color" }
  }
}

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #c48a13 · 6.99:1
Use #000000AA at every size, AAA for large text only.
Aa
12px
Aa
16px
Aa
24px
Aa
White text · 3.00:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.99:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #c48a13 as text scores 3.00:1 on white and 6.99:1 on black.
Best tinted ink on it, if plain black or white feels flat: #74520B at 2.37:1.

Make it accessible

A contrast checker tells you that you failed. This tells you what to ship instead — same hue, same saturation, lightness moved only as far as WCAG demands.

The quick fox
#9A6D0F · 4.60:1
AA on white−9% L
#9A6D0F
The quick fox
#75520B · 7.08:1
AAA on white−17% L
#75520B
The quick fox
#c48a13 · 6.99:1
AA on blackalready passes
#c48a13
The quick fox
#C98D13 · 7.30:1
AAA on black+1% L
#C98D13

Large text — 24px regular or 18.66px bold and above — only needs 3:1, so #C48A13 is enough for headings on white. Non-text elements such as icons, chart strokes and focus rings also sit at 3:1 under WCAG 2.2 (1.4.11).

Accessibility — WCAG contrast

Aa
#c48a13 on white: 3.00:1
AA ✗ fail · AA-large · AAA
Aa
#c48a13 on black: 6.99:1
AA ✓ pass · AA-large · AAA
Against the neutral ladder

Contrast is symmetric, so each row covers both directions: #c48a13 as text on that neutral, and that neutral as text on #c48a13.

NeutralRatioBoth directions
White3.00:1AaAa
Slate 502.87:1AaAa
Slate 1002.74:1AaAa
Slate 2002.44:1AaAa
Slate 3002.02:1AaAa
Slate 4001.17:1AaAa
Slate 5001.58:1AaAa
Slate 6002.52:1AaAa
Slate 7003.45:1AaAa
Slate 8004.87:1AaAa
Slate 9005.94:1AaAa
Black6.99:1AaAa
Colour vision deficiency
true color
protanopia · #A08C00
deuteranopia · #AD9B1B
tritanopia · #D67A76

Roughly one man in twelve has some form of colour vision deficiency. If any of the three panels above is hard to tell apart from a neighbouring colour in your palette, add a shape, an icon or a label so the meaning does not rest on hue alone.

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c48a13 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF9F2
#FAF3E6
#F6E6C6
#F5D799
#F0C366
#EBAF32
#DF9D16
#c48a13
#95690E
#6C4D0F
#433009
Base = 700Lightest = 50 · #FCF9F2Darkest = 950 · #433009Text step on white = 800
Perceptual ramp — OKLCH

The same eleven steps expressed in OKLCH, where equal lightness numbers actually look equally spaced. HSL ramps go muddy in the yellows and washed out in the blues; this one does not. Modern browsers render it natively — the hex ramp above is the fallback.

50100200300400500600700800900950
oklch tokensclick to select
:root {
  --brand-50: oklch(0.97 0.034 77.8);
  --brand-100: oklch(0.94 0.055 77.8);
  --brand-200: oklch(0.88 0.082 77.8);
  --brand-300: oklch(0.80 0.106 77.8);
  --brand-400: oklch(0.72 0.125 77.8);
  --brand-500: oklch(0.64 0.136 77.8);
  --brand-600: oklch(0.56 0.136 77.8);
  --brand-700: oklch(0.48 0.128 77.8);
  --brand-800: oklch(0.40 0.115 77.8);
  --brand-900: oklch(0.32 0.095 77.8);
  --brand-950: oklch(0.24 0.075 77.8);
}

Colors that work with #c48a13

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF8F4
Tinted page background
Border#EDDEC0
Hairlines and dividers
Muted text#9B814B
Captions on the surface
Accent#0F7AC8
Second voice, not a rival
Dark variant#74520B
Hover, pressed, headers
Light variant#FDF6E8
Selected rows, tints
Dark surface#241F14
Dark-mode background
Hover#A47310
One step down in lightness
Pressed#835C0D
Two steps down
Disabled#B8AB90
Chroma pulled out
Focus ring#E39B09
Offset from the fill so it reads
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

In real components

The same eight roles, wired into the interface patterns you will actually build with them. Every state below is a computed value, not a mock-up.

Buttons and states
Save changesHoverPressedDisabled
OutlineSubtleLinkFocused
Form field
you@company.com

Focus ring uses the light variant so the field still reads as one shape.

Send me product updates
Notice
Your export is ready

The file stays available for seven days. Download it before it expires.

NewBetaDraft
Data
Storage used68%
Acme LtdActive
NorthwindTrial
GlobexActive

How to use #c48a13

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate
Minimum size as text on white
24px / 18.66px bold
Safe as a fill behind white type
No — use #74520B
Safe as a 1px border on white
Yes

Meaning and mood

What a colour in this family tends to signal, and how this particular chroma and lightness change the reading.

optimisticalertcheap-and-cheerfulvisible

The most visible hue at low light levels, which is why it owns warnings, hazard tape and value retail.

At this chroma the association is amplified — it will dominate anything placed beside it, so give it space and use it sparingly. The low lightness adds weight and formality.

Worth knowing

Almost never passes contrast against white. Treat it as a surface or a marker, not as text.

Reads as
  • FormalityHigh
  • EnergyHigh
  • Weight58/100
  • TemperatureWarm
  • ApproachabilityHigh

Colour associations are cultural and vary by market. Treat these as a starting point for a conversation with your audience, not a finding about them.

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#134DC4
Analogous left#C43113
Analogous right#A6C413
Split-complement 1#13A6C4
Split-complement 2#3113C4
Triadic 1#13C48A
Triadic 2#8A13C4
Tetradic#13C431
On the wheel
Base+30°−30°+120°+240°+180°40°

#c48a13 sits at 40°. Every dot is a harmony position and links to its own page in the table alongside.

RGB percentages

Red76.9%
Green54.1%
Blue7.5%
R · 0–255
196
0xc4
G · 0–255
138
0x8a
B · 0–255
19
0x13

CMYK percentages

Cyan0.0%
Magenta29.6%
Yellow90.3%
Key (black)23.1%

Total ink coverage is 143%. Most commercial presses cap around 300% — above that, sheets stop drying properly.

Color previews

#c48a13 text on a black background

contrast 6.99:1

Card sample

#c48a13 text on a white background

contrast 3.00:1

Card sample

#c48a13 on grey

2.74:1

#c48a13 on its own surface

2.83:1

#c48a13 on its dark surface

5.46:1

CSS3 live lab

Text font color

The quick brown fox

color: #c48a13;
Background color
Panel with #c48a13 background
background-color: #c48a13;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #c48a13;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(196, 138, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 138, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c48a13;
background: linear-gradient(135deg, #c48a13, #88C413);
Gradient text

Gradient headline

background: linear-gradient(90deg, #c48a13, #5CC413);
-webkit-background-clip: text;
color: transparent;
Focus ring
Focused control
outline: 2px solid #c48a13;
outline-offset: 3px;
Underline & caret

Marked up text

text-decoration-color: #c48a13;
caret-color: #c48a13;
Left rule
Pull quote or callout
border-left: 4px solid #c48a13;
Ring + tint
Selected chip
background: #FDF6E8;
box-shadow: inset 0 0 0 2px #c48a13;
Conic badge
68%
background: conic-gradient(#c48a13 68%, #e2e8f0 0);

Transparency

What each alpha value actually composites to. The top row is #c48a13 over white; the bottom row is the same alpha over a checkerboard, so you can see what survives on a photo or a video.

Bottom row of hexes is the flattened result over white — use those when a design tool refuses transparency, or when you need a solid fallback.

alpha in every syntaxclick to select
rgba(196, 138, 19, 0.5)
rgb(196 138 19 / 50%)
#c48a1380
hsl(40 82% 42% / 50%)
color-mix(in srgb, #c48a13 50%, transparent)
Alpha8-digit hexFlat on white
10%#c48a131a#F9F3E7
20%#c48a1333#F3E8D0
40%#c48a1366#E7D0A1
60%#c48a1399#DCB971
80%#c48a13cc#D0A142

Gradients from #c48a13

Six recipes, each built from this hex and shown with the exact CSS that produced it.

Elevation
Same hue, three lightnesses — safe anywhere
background: linear-gradient(135deg, #EAAB2A, #c48a13 45%, #74520B);
Duotone
A short hue run reads richer than a flat fill
background: linear-gradient(120deg, #c48a13, #68A810);
Complement sweep
Loud — keep it behind large type only
background: linear-gradient(90deg, #c48a13, #134DC4);
Spotlight
Hero panels and app headers
background: radial-gradient(120% 120% at 20% 0%, #EDB646 0%, #c48a13 45%, #74520B 100%);
Soft wash
Section backgrounds that stay readable
background: linear-gradient(180deg, #FAF8F4, #ffffff);
Mesh
Ambient background, no image weight
background: radial-gradient(60% 60% at 15% 20%, #E93321 0%, transparent 60%), radial-gradient(55% 55% at 85% 15%, #ACE016 0%, transparent 60%), radial-gradient(70% 70% at 50% 95%, #74520B 0%, transparent 65%), #c48a13;

Monochromatic scale

Palettes built from #c48a13

Shades — darker

Tints — lighter

Tones — desaturated

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#c48a13 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

On screens

Holds up across typical panel gamma. Still worth checking on an uncalibrated laptop, where mid-tones shift most.

In dark mode

Usable as-is on a dark surface at 6.99:1.

Explore nearby colors

Small, deliberate steps away from this hex — useful when you are hunting for the version of a colour that finally feels right.

#c48a13, answered

What color is #c48a13?

#c48a13 is a dark electric yellow, closest to Dark Goldenrod (ΔE2000 2.9). It sits at 40° on the hue wheel with 82% saturation and 42% lightness, which reads as warm.

What is the RGB value of #c48a13?

rgb(196, 138, 19) — 196 red, 138 green and 19 blue out of 255, or 76.9% / 54.1% / 7.5% by channel.

What is #c48a13 in HSL and HSV?

hsl(40, 82%, 42%) and hsv(40, 90%, 77%). HSL is what CSS takes; HSV is what your design tool's picker shows, which is why the saturation numbers rarely match.

Is #c48a13 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2996 and perceived brightness is 59%, so black text on it reaches 6.99:1.

Should I use black or white text on #c48a13?

Black. It scores 6.99:1 against #c48a13, versus 3.00:1 for white — AA at any size.

Is #c48a13 accessible on a white background?

#c48a13 on white scores 3.00:1, which only clears AA for large text — 18.66px bold or 24px regular and up. Darken it to #9A6D0F to reach 4.5:1, or #75520B for 7:1.

What is the complementary color of #c48a13?

#134DC4 sits directly opposite on the wheel. Softer options are the split-complements #13A6C4 and #3113C4, which give the same contrast with far less vibration.

What colors go well with #c48a13?

For interface work: #FAF8F4 as the surface, #EDDEC0 for borders, #9B814B for secondary text, #0F7AC8 as an accent and #74520B for hover and pressed states. For a palette, the analogous pair #C43113 and #A6C413 stays calm, while #134DC4 is the loudest partner.

What is #c48a13 in CMYK for printing?

cmyk(0%, 30%, 90%, 23%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #c48a13 warm or cool?

Warm — it scores 9 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C47113; nudged cooler, #BFC611.

Which Tailwind color is closest to #c48a13?

The amber family — its 500 step is #f59e0b, ΔE2000 10.1 away. That is a visible difference, so define #c48a13 as a custom token rather than reaching for the built-in.

How do I use #c48a13 in Tailwind CSS?

Inline it as an arbitrary value with bg-[#c48a13] or text-[#c48a13], or register the whole ramp under theme.extend.colors.brand so you get bg-brand-500 and friends. The generated 50–950 scale on this page is ready to paste into your config.

What is #c48a13 with 50% opacity?

rgba(196, 138, 19, 0.5), or #c48a1380 in eight-digit hex. Over white that composites to #E2C589; over black, #62450A.

Is #c48a13 a web-safe color?

No. The nearest web-safe colour is #CC9900, ΔE2000 5.5 away. The palette only matters for legacy displays and some email clients now.

What does the color #c48a13 mean?

As a yellow, it reads optimistic, alert, cheap-and-cheerful. The most visible hue at low light levels, which is why it owns warnings, hazard tape and value retail. At this chroma the effect is amplified — it will dominate whatever sits beside it.

What gradient works with #c48a13?

The safest is same-hue elevation: linear-gradient(135deg, #EAAB2A, #c48a13 45%, #74520B). For more colour, a short hue run to #68A810 keeps it rich without turning muddy.

Work with #c48a13 in the Color Lab

Every tool opens with this colour already loaded.

Every value on this page is computed from #c48a13 at request time — conversions, contrast ratios and ΔE distances are calculated, never looked up.