#CFAF37#CFAF37

#CFAF37 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 76.2% C 0.138 H 93.5°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#CFAF37
RGBrgb(207, 175, 55)
HSLhsl(47, 61%, 51%)
HSVhsv(47, 73%, 81%)
CMYKcmyk(0%, 15.5%, 73.4%, 18.8%)
CIE-LABlab(72.36, -0.79, 62.28)
CIE-LCHlch(72.36, 62.28, 90.73°)
OKLaboklab(76.16% -0.0085 0.1375)
OKLCHoklch(76.16% 0.138 93.5)
XYZxyz(41.7539, 44.2036, 9.9466)
Luminance0.4420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAF37 #3757CF
analogous
#CF6337 #CFAF37 #A3CF37
triadic
#CFAF37 #37CFAF #AF37CF
tetradic
#CFAF37 #37CF63 #3757CF #CF37A3
square
#CFAF37 #37CF63 #3757CF #CF37A3
split-complementary
#CFAF37 #37A3CF #6337CF
monochromatic
#715F1B #A28827 #CFAF37 #DBC368 #E7D69A

Accessibility & contrast

On white

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

On black

9.84
#CFAF37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAF37
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAF37#FFFFFF#000000##000000
##CFAF371.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC23
Deuteranopia (green-blind)
#CAB53E
Tritanopia (blue-blind)
#E0A197
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cfaf37;
/* rgb */ color: rgb(207, 175, 55);
/* oklch */ color: oklch(76.2% 0.138 93.5);
Tailwind
colors: {
  custom: {
    50: '#e2c676',
    500: '#cfaf37',
    950: '#000000',
  },
}
SCSS
$custom: #cfaf37;
$custom-light: #e2c676;
$custom-dark: #000000;
JSON
{
  "hex": "#cfaf37",
  "rgb": {
    "r": 207,
    "g": 175,
    "b": 55
  },
  "hsl": {
    "h": 47.368,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.76157,
    "c": 0.13777,
    "h": 93.5
  },
  "luminance": 0.44201
}

Semantic roles & 50–950 ramp

primary
#CFAF37
secondary
#8F9ED2
accent
#65E443
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CFAF37

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

Preview Lab → · Contrast checker → · Palette generator →

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