#CFB04C#CFB04C

#CFB04C is a light, vivid yellow. Relative luminance 0.448; OKLCH L 76.5% C 0.124 H 92.0°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#CFB04C
RGBrgb(207, 176, 76)
HSLhsl(46, 58%, 55%)
HSVhsv(46, 63%, 81%)
CMYKcmyk(0%, 15%, 63.3%, 18.8%)
CIE-LABlab(72.79, -0.17, 53.97)
CIE-LCHlch(72.79, 53.97, 90.18°)
OKLaboklab(76.54% -0.0042 0.1235)
OKLCHoklch(76.54% 0.124 92)
XYZxyz(42.5640, 44.8402, 13.2491)
Luminance0.4484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB04C #4C6BCF
analogous
#CF6F4C #CFB04C #ACCF4C
triadic
#CFB04C #4CCFB0 #B04CCF
tetradic
#CFB04C #4CCF6F #4C6BCF #CF4CAC
square
#CFB04C #4CCF6F #4C6BCF #CF4CAC
split-complementary
#CFB04C #4CACCF #6F4CCF
monochromatic
#7F6922 #AF912F #CFB04C #DCC57C #E9DBAD

Accessibility & contrast

On white

2.11
#CFB04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#CFB04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB04C
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB04C#FFFFFF#000000##000000
##CFB04C1.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD41
Deuteranopia (green-blind)
#C9B651
Tritanopia (blue-blind)
#DFA39A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cfb04c;
/* rgb */ color: rgb(207, 176, 76);
/* oklch */ color: oklch(76.5% 0.124 92.0);
Tailwind
colors: {
  custom: {
    50: '#e1c782',
    500: '#cfb04c',
    950: '#000000',
  },
}
SCSS
$custom: #cfb04c;
$custom-light: #e1c782;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb04c",
  "rgb": {
    "r": 207,
    "g": 176,
    "b": 76
  },
  "hsl": {
    "h": 45.802,
    "s": 57.709,
    "l": 55.49
  },
  "oklch": {
    "l": 0.76543,
    "c": 0.12354,
    "h": 92
  },
  "luminance": 0.44838
}

Semantic roles & 50–950 ramp

primary
#CFB04C
secondary
#A0ADD7
accent
#6BE147
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CFB04C

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

Preview Lab → · Contrast checker → · Palette generator →

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