#CFB945#CFB945

#CFB945 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 78.3% C 0.135 H 98.4°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#CFB945
RGBrgb(207, 185, 69)
HSLhsl(50, 59%, 54%)
HSVhsv(50, 67%, 81%)
CMYKcmyk(0%, 10.6%, 66.7%, 18.8%)
CIE-LABlab(75.07, -5.31, 59.45)
CIE-LCHlch(75.07, 59.68, 95.10°)
OKLaboklab(78.33% -0.0198 0.134)
OKLCHoklch(78.33% 0.135 98.4)
XYZxyz(44.1573, 48.3951, 12.6443)
Luminance0.4839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB945 #455BCF
analogous
#CF7445 #CFB945 #A0CF45
triadic
#CFB945 #45CFB9 #B945CF
tetradic
#CFB945 #45CF74 #455BCF #CF45A0
square
#CFB945 #45CF74 #455BCF #CF45A0
split-complementary
#CFB945 #45A0CF #7445CF
monochromatic
#7A6C20 #AB972C #CFB945 #DCCB76 #E8DEA6

Accessibility & contrast

On white

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

On black

10.68
#CFB945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB945
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB945#FFFFFF#000000##000000
##CFB9451.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB436
Deuteranopia (green-blind)
#D0BC4B
Tritanopia (blue-blind)
#DFACA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cfb945;
/* rgb */ color: rgb(207, 185, 69);
/* oklch */ color: oklch(78.3% 0.135 98.4);
Tailwind
colors: {
  custom: {
    50: '#e1cd7e',
    500: '#cfb945',
    950: '#000000',
  },
}
SCSS
$custom: #cfb945;
$custom-light: #e1cd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb945",
  "rgb": {
    "r": 207,
    "g": 185,
    "b": 69
  },
  "hsl": {
    "h": 50.435,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78333,
    "c": 0.13546,
    "h": 98.4
  },
  "luminance": 0.48393
}

Semantic roles & 50–950 ramp

primary
#CFB945
secondary
#9BA4D5
accent
#5FE246
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB945

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

Preview Lab → · Contrast checker → · Palette generator →

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