#CFB940#CFB940

#CFB940 is a light, vivid yellow. Relative luminance 0.483; OKLCH L 78.3% C 0.139 H 98.8°. Best body text is #000000 at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#CFB940
RGBrgb(207, 185, 64)
HSLhsl(51, 60%, 53%)
HSVhsv(51, 69%, 81%)
CMYKcmyk(0%, 10.6%, 69.1%, 18.8%)
CIE-LABlab(75.04, -5.58, 61.44)
CIE-LCHlch(75.04, 61.69, 95.19°)
OKLaboklab(78.29% -0.0212 0.1374)
OKLCHoklch(78.29% 0.139 98.8)
XYZxyz(44.0085, 48.3356, 11.8611)
Luminance0.4833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB940 #4056CF
analogous
#CF7140 #CFB940 #9ECF40
triadic
#CFB940 #40CFB9 #B940CF
tetradic
#CFB940 #40CF71 #4056CF #CF409E
square
#CFB940 #40CF71 #4056CF #CF409E
split-complementary
#CFB940 #409ECF #7140CF
monochromatic
#77691E #A8942A #CFB940 #DBCB71 #E8DDA2

Accessibility & contrast

On white

1.97
#CFB940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.67
#CFB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB940
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB940#FFFFFF#000000##000000
##CFB9401.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB42F
Deuteranopia (green-blind)
#D1BC47
Tritanopia (blue-blind)
#DFACA0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cfb940;
/* rgb */ color: rgb(207, 185, 64);
/* oklch */ color: oklch(78.3% 0.139 98.8);
Tailwind
colors: {
  custom: {
    50: '#e1cd7c',
    500: '#cfb940',
    950: '#000000',
  },
}
SCSS
$custom: #cfb940;
$custom-light: #e1cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb940",
  "rgb": {
    "r": 207,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 50.769,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.78291,
    "c": 0.139,
    "h": 98.8
  },
  "luminance": 0.48333
}

Semantic roles & 50–950 ramp

primary
#CFB940
secondary
#97A0D4
accent
#5DE345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB940

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

Preview Lab → · Contrast checker → · Palette generator →

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