#CFB258#CFB258

#CFB258 is a light, moderate yellow. Relative luminance 0.458; OKLCH L 77.1% C 0.115 H 91.7°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#CFB258
RGBrgb(207, 178, 88)
HSLhsl(45, 55%, 58%)
HSVhsv(45, 57%, 81%)
CMYKcmyk(0%, 14%, 57.5%, 18.8%)
CIE-LABlab(73.42, -0.38, 49.11)
CIE-LCHlch(73.42, 49.11, 90.44°)
OKLaboklab(77.09% -0.0034 0.1146)
OKLCHoklch(77.09% 0.115 91.7)
XYZxyz(43.4158, 45.8129, 15.7866)
Luminance0.4581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB258 #5875CF
analogous
#CF7658 #CFB258 #B1CF58
triadic
#CFB258 #58CFB2 #B258CF
tetradic
#CFB258 #58CF76 #5875CF #CF58B1
square
#CFB258 #58CF76 #5875CF #CF58B1
split-complementary
#CFB258 #58B1CF #7658CF
monochromatic
#866F27 #B69634 #CFB258 #DDC888 #EADEB7

Accessibility & contrast

On white

2.07
#CFB258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#CFB258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB258
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB258#FFFFFF#000000##000000
##CFB2581.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF4F
Deuteranopia (green-blind)
#CAB85C
Tritanopia (blue-blind)
#DEA69E
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb258;
/* rgb */ color: rgb(207, 178, 88);
/* oklch */ color: oklch(77.1% 0.115 91.7);
Tailwind
colors: {
  custom: {
    50: '#e0c88a',
    500: '#cfb258',
    950: '#000000',
  },
}
SCSS
$custom: #cfb258;
$custom-light: #e0c88a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb258",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 88
  },
  "hsl": {
    "h": 45.378,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.77085,
    "c": 0.11464,
    "h": 91.7
  },
  "luminance": 0.45811
}

Semantic roles & 50–950 ramp

primary
#CFB258
secondary
#AAB5D9
accent
#6EDF49
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130C
muted
#84827D

Preview Lab

Preview with #CFB258

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

Preview Lab → · Contrast checker → · Palette generator →

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