#CFBA42#CFBA42

#CFBA42 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.5% C 0.138 H 99.2°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#CFBA42
RGBrgb(207, 186, 66)
HSLhsl(51, 59%, 54%)
HSVhsv(51, 68%, 81%)
CMYKcmyk(0%, 10.1%, 68.1%, 18.8%)
CIE-LABlab(75.31, -5.99, 60.92)
CIE-LCHlch(75.31, 61.22, 95.62°)
OKLaboklab(78.52% -0.0221 0.1366)
OKLCHoklch(78.52% 0.138 99.2)
XYZxyz(44.2764, 48.7786, 12.2362)
Luminance0.4878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFBA42 #4257CF
analogous
#CF7342 #CFBA42 #9DCF42
triadic
#CFBA42 #42CFBA #BA42CF
tetradic
#CFBA42 #42CF73 #4257CF #CF429D
square
#CFBA42 #42CF73 #4257CF #CF429D
split-complementary
#CFBA42 #429DCF #7342CF
monochromatic
#786B1F #A9962B #CFBA42 #DBCC73 #E8DEA4

Accessibility & contrast

On white

1.95
#CFBA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#CFBA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFBA42
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFBA42#FFFFFF#000000##000000
##CFBA421.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB531
Deuteranopia (green-blind)
#D1BD49
Tritanopia (blue-blind)
#DFADA2
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cfba42;
/* rgb */ color: rgb(207, 186, 66);
/* oklch */ color: oklch(78.5% 0.138 99.2);
Tailwind
colors: {
  custom: {
    50: '#e1ce7d',
    500: '#cfba42',
    950: '#000000',
  },
}
SCSS
$custom: #cfba42;
$custom-light: #e1ce7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfba42",
  "rgb": {
    "r": 207,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 51.064,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.78516,
    "c": 0.13841,
    "h": 99.2
  },
  "luminance": 0.48777
}

Semantic roles & 50–950 ramp

primary
#CFBA42
secondary
#98A1D5
accent
#5DE345
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFBA42

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

Preview Lab → · Contrast checker → · Palette generator →

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