#CBC662#CBC662

#CBC662 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.0% C 0.123 H 106.2°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#CBC662
RGBrgb(203, 198, 98)
HSLhsl(57, 50%, 59%)
HSVhsv(57, 52%, 80%)
CMYKcmyk(0%, 2.5%, 51.7%, 20.4%)
CIE-LABlab(78.44, -11.61, 50.11)
CIE-LCHlch(78.44, 51.44, 103.05°)
OKLaboklab(81.01% -0.0343 0.1179)
OKLCHoklch(81.01% 0.123 106.2)
XYZxyz(47.0285, 53.9679, 19.4924)
Luminance0.5397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC662 #6267CB
analogous
#CB9262 #CBC662 #9CCB62
triadic
#CBC662 #62CBC6 #C662CB
tetradic
#CBC662 #62CB92 #6267CB #CB629C
square
#CBC662 #62CB92 #6267CB #CB629C
split-complementary
#CBC662 #629CCB #9262CB
monochromatic
#86822C #B4AE3C #CBC662 #DAD790 #E9E7BE

Accessibility & contrast

On white

1.78
#CBC662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#CBC662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC662
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC662#FFFFFF#000000##000000
##CBC6621.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C059
Deuteranopia (green-blind)
#D7C467
Tritanopia (blue-blind)
#D8BBAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cbc662;
/* rgb */ color: rgb(203, 198, 98);
/* oklch */ color: oklch(81.0% 0.123 106.2);
Tailwind
colors: {
  custom: {
    50: '#ddd791',
    500: '#cbc662',
    950: '#000000',
  },
}
SCSS
$custom: #cbc662;
$custom-light: #ddd791;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc662",
  "rgb": {
    "r": 203,
    "g": 198,
    "b": 98
  },
  "hsl": {
    "h": 57.143,
    "s": 50.239,
    "l": 59.02
  },
  "oklch": {
    "l": 0.81014,
    "c": 0.12278,
    "h": 106.2
  },
  "luminance": 0.53967
}

Semantic roles & 50–950 ramp

primary
#CBC662
secondary
#44478D
accent
#55DA4E
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CBC662

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

Preview Lab → · Contrast checker → · Palette generator →

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