#CFAE42#CFAE42

#CFAE42 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 76.0% C 0.130 H 91.8°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#CFAE42
RGBrgb(207, 174, 66)
HSLhsl(46, 59%, 54%)
HSVhsv(46, 68%, 81%)
CMYKcmyk(0%, 15.9%, 68.1%, 18.8%)
CIE-LABlab(72.18, 0.29, 57.70)
CIE-LCHlch(72.18, 57.70, 89.71°)
OKLaboklab(76.04% -0.0041 0.1298)
OKLCHoklch(76.04% 0.13 91.8)
XYZxyz(41.8537, 43.9332, 11.4287)
Luminance0.4393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAE42 #4263CF
analogous
#CF6742 #CFAE42 #AACF42
triadic
#CFAE42 #42CFAE #AE42CF
tetradic
#CFAE42 #42CF67 #4263CF #CF42AA
square
#CFAE42 #42CF67 #4263CF #CF42AA
split-complementary
#CFAE42 #42AACF #6742CF
monochromatic
#78631F #A98B2B #CFAE42 #DBC373 #E8D8A4

Accessibility & contrast

On white

2.15
#CFAE42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#CFAE42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAE42
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAE42#FFFFFF#000000##000000
##CFAE421.002.159.799.79
#FFFFFF2.151.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB34
Deuteranopia (green-blind)
#C9B547
Tritanopia (blue-blind)
#DFA098
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cfae42;
/* rgb */ color: rgb(207, 174, 66);
/* oklch */ color: oklch(76.0% 0.130 91.8);
Tailwind
colors: {
  custom: {
    50: '#e1c57c',
    500: '#cfae42',
    950: '#000000',
  },
}
SCSS
$custom: #cfae42;
$custom-light: #e1c57c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfae42",
  "rgb": {
    "r": 207,
    "g": 174,
    "b": 66
  },
  "hsl": {
    "h": 45.957,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.7604,
    "c": 0.12988,
    "h": 91.8
  },
  "luminance": 0.43931
}

Semantic roles & 50–950 ramp

primary
#CFAE42
secondary
#98A6D5
accent
#6AE345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CFAE42

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

Preview Lab → · Contrast checker → · Palette generator →

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