#C4A02F#C4A02F

#C4A02F is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.9% C 0.132 H 90.3°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#C4A02F
RGBrgb(196, 160, 47)
HSLhsl(46, 61%, 48%)
HSVhsv(46, 76%, 77%)
CMYKcmyk(0%, 18.4%, 76%, 23.1%)
CIE-LABlab(67.34, 2.04, 60.07)
CIE-LCHlch(67.34, 60.10, 88.06°)
OKLaboklab(71.93% -0.0006 0.1317)
OKLCHoklch(71.93% 0.132 90.3)
XYZxyz(35.8509, 37.0849, 7.9586)
Luminance0.3708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4A02F #2F53C4
analogous
#C4552F #C4A02F #9EC42F
triadic
#C4A02F #2FC4A0 #A02FC4
tetradic
#C4A02F #2FC455 #2F53C4 #C42F9E
square
#C4A02F #2FC455 #2F53C4 #C42F9E
split-complementary
#C4A02F #2F9EC4 #552FC4
monochromatic
#614F17 #937823 #C4A02F #D7B959 #E3CE8A

Accessibility & contrast

On white

2.50
#C4A02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#C4A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4A02F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4A02F#FFFFFF#000000##000000
##C4A02F1.002.508.428.42
#FFFFFF2.501.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1B
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#D4928A
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c4a02f;
/* rgb */ color: rgb(196, 160, 47);
/* oklch */ color: oklch(71.9% 0.132 90.3);
Tailwind
colors: {
  custom: {
    50: '#dabb70',
    500: '#c4a02f',
    950: '#000000',
  },
}
SCSS
$custom: #c4a02f;
$custom-light: #dabb70;
$custom-dark: #000000;
JSON
{
  "hex": "#c4a02f",
  "rgb": {
    "r": 196,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 45.503,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.71927,
    "c": 0.1317,
    "h": 90.3
  },
  "luminance": 0.37083
}

Semantic roles & 50–950 ramp

primary
#C4A02F
secondary
#8294CD
accent
#6AE443
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161108
muted
#84807B

Preview Lab

Preview with #C4A02F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#C4A02F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva