#CBC157#CBC157

#CBC157 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.128 H 103.9°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#CBC157
RGBrgb(203, 193, 87)
HSLhsl(55, 53%, 57%)
HSVhsv(55, 57%, 80%)
CMYKcmyk(0%, 4.9%, 57.1%, 20.4%)
CIE-LABlab(77.00, -9.94, 53.56)
CIE-LCHlch(77.00, 54.48, 100.51°)
OKLaboklab(79.83% -0.0308 0.1241)
OKLCHoklch(79.83% 0.128 103.9)
XYZxyz(45.4204, 51.5261, 16.5680)
Luminance0.5152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC157 #5761CB
analogous
#CB8757 #CBC157 #9BCB57
triadic
#CBC157 #57CBC1 #C157CB
tetradic
#CBC157 #57CB87 #5761CB #CB579B
square
#CBC157 #57CB87 #5761CB #CB579B
split-complementary
#CBC157 #579BCB #8757CB
monochromatic
#807828 #AFA436 #CBC157 #D9D286 #E8E3B4

Accessibility & contrast

On white

1.86
#CBC157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#CBC157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC157
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC157#FFFFFF#000000##000000
##CBC1571.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4C
Deuteranopia (green-blind)
#D4C15C
Tritanopia (blue-blind)
#D9B5AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cbc157;
/* rgb */ color: rgb(203, 193, 87);
/* oklch */ color: oklch(79.8% 0.128 103.9);
Tailwind
colors: {
  custom: {
    50: '#ddd38a',
    500: '#cbc157',
    950: '#000000',
  },
}
SCSS
$custom: #cbc157;
$custom-light: #ddd38a;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc157",
  "rgb": {
    "r": 203,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 54.828,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.79827,
    "c": 0.12788,
    "h": 103.9
  },
  "luminance": 0.51525
}

Semantic roles & 50–950 ramp

primary
#CBC157
secondary
#3F4588
accent
#58DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CBC157

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

Preview Lab → · Contrast checker → · Palette generator →

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