#CFA931#CFA931

#CFA931 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.9% C 0.138 H 90.3°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CFA931
RGBrgb(207, 169, 49)
HSLhsl(46, 62%, 50%)
HSVhsv(46, 76%, 81%)
CMYKcmyk(0%, 18.4%, 76.3%, 18.8%)
CIE-LABlab(70.78, 2.13, 62.97)
CIE-LCHlch(70.78, 63.01, 88.06°)
OKLaboklab(74.89% -0.0008 0.1378)
OKLCHoklch(74.89% 0.138 90.3)
XYZxyz(40.4769, 41.8657, 8.8541)
Luminance0.4186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA931 #3157CF
analogous
#CF5A31 #CFA931 #A6CF31
triadic
#CFA931 #31CFA9 #A931CF
tetradic
#CFA931 #31CF5A #3157CF #CF31A6
square
#CFA931 #31CF5A #3157CF #CF31A6
split-complementary
#CFA931 #31A6CF #5A31CF
monochromatic
#6C5819 #9E8125 #CFA931 #DBBE63 #E6D294

Accessibility & contrast

On white

2.24
#CFA931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#CFA931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA931
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA931#FFFFFF#000000##000000
##CFA9311.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA71B
Deuteranopia (green-blind)
#C6B238
Tritanopia (blue-blind)
#E09A92
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cfa931;
/* rgb */ color: rgb(207, 169, 49);
/* oklch */ color: oklch(74.9% 0.138 90.3);
Tailwind
colors: {
  custom: {
    50: '#e2c272',
    500: '#cfa931',
    950: '#000000',
  },
}
SCSS
$custom: #cfa931;
$custom-light: #e2c272;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa931",
  "rgb": {
    "r": 207,
    "g": 169,
    "b": 49
  },
  "hsl": {
    "h": 45.57,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.74894,
    "c": 0.13779,
    "h": 90.3
  },
  "luminance": 0.41863
}

Semantic roles & 50–950 ramp

primary
#CFA931
secondary
#8B9CD1
accent
#6AE543
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CFA931

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

Preview Lab → · Contrast checker → · Palette generator →

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