#CFAD38#CFAD38

#CFAD38 is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.8% C 0.136 H 92.2°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#CFAD38
RGBrgb(207, 173, 56)
HSLhsl(46, 61%, 52%)
HSVhsv(46, 73%, 81%)
CMYKcmyk(0%, 16.4%, 72.9%, 18.8%)
CIE-LABlab(71.85, 0.31, 61.40)
CIE-LCHlch(71.85, 61.40, 89.71°)
OKLaboklab(75.76% -0.0052 0.1358)
OKLCHoklch(75.76% 0.136 92.2)
XYZxyz(41.3918, 43.4405, 9.9453)
Luminance0.4344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAD38 #385ACF
analogous
#CF6238 #CFAD38 #A6CF38
triadic
#CFAD38 #38CFAD #AD38CF
tetradic
#CFAD38 #38CF62 #385ACF #CF38A6
square
#CFAD38 #38CF62 #385ACF #CF38A6
split-complementary
#CFAD38 #38A6CF #6238CF
monochromatic
#715E1B #A38727 #CFAD38 #DBC169 #E7D69B

Accessibility & contrast

On white

2.17
#CFAD38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#CFAD38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAD38
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAD38#FFFFFF#000000##000000
##CFAD381.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA26
Deuteranopia (green-blind)
#C8B43E
Tritanopia (blue-blind)
#E09F96
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cfad38;
/* rgb */ color: rgb(207, 173, 56);
/* oklch */ color: oklch(75.8% 0.136 92.2);
Tailwind
colors: {
  custom: {
    50: '#e2c576',
    500: '#cfad38',
    950: '#000000',
  },
}
SCSS
$custom: #cfad38;
$custom-light: #e2c576;
$custom-dark: #000000;
JSON
{
  "hex": "#cfad38",
  "rgb": {
    "r": 207,
    "g": 173,
    "b": 56
  },
  "hsl": {
    "h": 46.49,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75756,
    "c": 0.13594,
    "h": 92.2
  },
  "luminance": 0.43438
}

Semantic roles & 50–950 ramp

primary
#CFAD38
secondary
#909FD3
accent
#68E444
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAD38

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

Preview Lab → · Contrast checker → · Palette generator →

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