#CFAF40#CFAF40

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

Color values

HEX#CFAF40
RGBrgb(207, 175, 64)
HSLhsl(47, 60%, 53%)
HSVhsv(47, 69%, 81%)
CMYKcmyk(0%, 15.5%, 69.1%, 18.8%)
CIE-LABlab(72.43, -0.34, 58.78)
CIE-LCHlch(72.43, 58.79, 90.34°)
OKLaboklab(76.23% -0.0062 0.1318)
OKLCHoklch(76.23% 0.132 92.7)
XYZxyz(41.9897, 44.2979, 11.1882)
Luminance0.4430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAF40 #4060CF
analogous
#CF6740 #CFAF40 #A8CF40
triadic
#CFAF40 #40CFAF #AF40CF
tetradic
#CFAF40 #40CF67 #4060CF #CF40A8
square
#CFAF40 #40CF67 #4060CF #CF40A8
split-complementary
#CFAF40 #40A8CF #6740CF
monochromatic
#77631E #A88C2A #CFAF40 #DBC371 #E8D8A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFAF40#FFFFFF#000000##000000
##CFAF401.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)
#C1AC31
Deuteranopia (green-blind)
#C9B646
Tritanopia (blue-blind)
#DFA198
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cfaf40;
/* rgb */ color: rgb(207, 175, 64);
/* oklch */ color: oklch(76.2% 0.132 92.7);
Tailwind
colors: {
  custom: {
    50: '#e1c67b',
    500: '#cfaf40',
    950: '#000000',
  },
}
SCSS
$custom: #cfaf40;
$custom-light: #e1c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfaf40",
  "rgb": {
    "r": 207,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 46.573,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.76227,
    "c": 0.13191,
    "h": 92.7
  },
  "luminance": 0.44296
}

Semantic roles & 50–950 ramp

primary
#CFAF40
secondary
#97A4D4
accent
#68E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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