#CFAF42#CFAF42

#CFAF42 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 76.2% C 0.131 H 92.5°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#CFAF42
RGBrgb(207, 175, 66)
HSLhsl(46, 59%, 54%)
HSVhsv(46, 68%, 81%)
CMYKcmyk(0%, 15.5%, 68.1%, 18.8%)
CIE-LABlab(72.44, -0.24, 57.97)
CIE-LCHlch(72.44, 57.97, 90.23°)
OKLaboklab(76.24% -0.0056 0.1304)
OKLCHoklch(76.24% 0.131 92.5)
XYZxyz(42.0476, 44.3211, 11.4933)
Luminance0.4432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAF42 #4262CF
analogous
#CF6842 #CFAF42 #A8CF42
triadic
#CFAF42 #42CFAF #AF42CF
tetradic
#CFAF42 #42CF68 #4262CF #CF42A8
square
#CFAF42 #42CF68 #4262CF #CF42A8
split-complementary
#CFAF42 #42A8CF #6842CF
monochromatic
#78641F #A98C2B #CFAF42 #DBC473 #E8D8A4

Accessibility & contrast

On white

2.13
#CFAF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#CFAF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAF42
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAF42#FFFFFF#000000##000000
##CFAF421.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C9B647
Tritanopia (blue-blind)
#DFA198
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cfaf42;
/* rgb */ color: rgb(207, 175, 66);
/* oklch */ color: oklch(76.2% 0.131 92.5);
Tailwind
colors: {
  custom: {
    50: '#e1c67c',
    500: '#cfaf42',
    950: '#000000',
  },
}
SCSS
$custom: #cfaf42;
$custom-light: #e1c67c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfaf42",
  "rgb": {
    "r": 207,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 46.383,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.76244,
    "c": 0.1305,
    "h": 92.5
  },
  "luminance": 0.44319
}

Semantic roles & 50–950 ramp

primary
#CFAF42
secondary
#98A6D5
accent
#69E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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