#CFB257#CFB257

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

Color values

HEX#CFB257
RGBrgb(207, 178, 87)
HSLhsl(46, 56%, 58%)
HSVhsv(46, 58%, 81%)
CMYKcmyk(0%, 14%, 58%, 18.8%)
CIE-LABlab(73.41, -0.45, 49.58)
CIE-LCHlch(73.41, 49.58, 90.52°)
OKLaboklab(77.07% -0.0037 0.1155)
OKLCHoklch(77.07% 0.116 91.9)
XYZxyz(43.3747, 45.7965, 15.5699)
Luminance0.4579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB257 #5774CF
analogous
#CF7657 #CFB257 #B0CF57
triadic
#CFB257 #57CFB2 #B257CF
tetradic
#CFB257 #57CF76 #5774CF #CF57B0
square
#CFB257 #57CF76 #5774CF #CF57B0
split-complementary
#CFB257 #57B0CF #7657CF
monochromatic
#856E26 #B59634 #CFB257 #DDC887 #EADEB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFB257#FFFFFF#000000##000000
##CFB2571.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)
#C3AF4E
Deuteranopia (green-blind)
#CAB85B
Tritanopia (blue-blind)
#DEA69E
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb257;
/* rgb */ color: rgb(207, 178, 87);
/* oklch */ color: oklch(77.1% 0.116 91.9);
Tailwind
colors: {
  custom: {
    50: '#e0c889',
    500: '#cfb257',
    950: '#000000',
  },
}
SCSS
$custom: #cfb257;
$custom-light: #e0c889;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb257",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 87
  },
  "hsl": {
    "h": 45.5,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.77073,
    "c": 0.11553,
    "h": 91.9
  },
  "luminance": 0.45794
}

Semantic roles & 50–950 ramp

primary
#CFB257
secondary
#A9B4D9
accent
#6DDF49
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130C
muted
#84827D

Preview Lab

Preview with #CFB257

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

Preview Lab → · Contrast checker → · Palette generator →

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