#CBC54F#CBC54F

#CBC54F is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.6% C 0.139 H 106.4°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#CBC54F
RGBrgb(203, 197, 79)
HSLhsl(57, 54%, 55%)
HSVhsv(57, 61%, 80%)
CMYKcmyk(0%, 3%, 61.1%, 20.4%)
CIE-LABlab(77.99, -12.54, 58.21)
CIE-LCHlch(77.99, 59.55, 102.16°)
OKLaboklab(80.59% -0.0391 0.133)
OKLCHoklch(80.59% 0.139 106.4)
XYZxyz(46.0077, 53.1950, 15.2398)
Luminance0.5319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC54F #4F55CB
analogous
#CB874F #CBC54F #93CB4F
triadic
#CBC54F #4FCBC5 #C54FCB
tetradic
#CBC54F #4FCB87 #4F55CB #CB4F93
square
#CBC54F #4FCB87 #4F55CB #CB4F93
split-complementary
#CBC54F #4F93CB #874FCB
monochromatic
#7B7724 #AAA532 #CBC54F #D9D57E #E7E4AD

Accessibility & contrast

On white

1.80
#CBC54F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#CBC54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC54F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC54F#FFFFFF#000000##000000
##CBC54F1.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE41
Deuteranopia (green-blind)
#D7C356
Tritanopia (blue-blind)
#D9B9AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cbc54f;
/* rgb */ color: rgb(203, 197, 79);
/* oklch */ color: oklch(80.6% 0.139 106.4);
Tailwind
colors: {
  custom: {
    50: '#ded685',
    500: '#cbc54f',
    950: '#000000',
  },
}
SCSS
$custom: #cbc54f;
$custom-light: #ded685;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc54f",
  "rgb": {
    "r": 203,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 57.097,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.80593,
    "c": 0.13862,
    "h": 106.4
  },
  "luminance": 0.53194
}

Semantic roles & 50–950 ramp

primary
#CBC54F
secondary
#3B3E83
accent
#51DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CBC54F

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

Preview Lab → · Contrast checker → · Palette generator →

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