#CBC74F#CBC74F

#CBC74F is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.0% C 0.141 H 107.3°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CBC74F
RGBrgb(203, 199, 79)
HSLhsl(58, 54%, 55%)
HSVhsv(58, 61%, 80%)
CMYKcmyk(0%, 2%, 61.1%, 20.4%)
CIE-LABlab(78.53, -13.56, 58.79)
CIE-LCHlch(78.53, 60.33, 102.98°)
OKLaboklab(81.02% -0.0419 0.1342)
OKLCHoklch(81.02% 0.141 107.3)
XYZxyz(46.4648, 54.1093, 15.3922)
Luminance0.5411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC74F #4F53CB
analogous
#CB894F #CBC74F #91CB4F
triadic
#CBC74F #4FCBC7 #C74FCB
tetradic
#CBC74F #4FCB89 #4F53CB #CB4F91
square
#CBC74F #4FCB89 #4F53CB #CB4F91
split-complementary
#CBC74F #4F91CB #894FCB
monochromatic
#7B7824 #AAA732 #CBC74F #D9D67E #E7E5AD

Accessibility & contrast

On white

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

On black

11.82
#CBC74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC74F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC74F#FFFFFF#000000##000000
##CBC74F1.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C041
Deuteranopia (green-blind)
#D9C456
Tritanopia (blue-blind)
#D9BBAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cbc74f;
/* rgb */ color: rgb(203, 199, 79);
/* oklch */ color: oklch(81.0% 0.141 107.3);
Tailwind
colors: {
  custom: {
    50: '#ded785',
    500: '#cbc74f',
    950: '#000000',
  },
}
SCSS
$custom: #cbc74f;
$custom-light: #ded785;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc74f",
  "rgb": {
    "r": 203,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 58.065,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.8102,
    "c": 0.14062,
    "h": 107.3
  },
  "luminance": 0.54108
}

Semantic roles & 50–950 ramp

primary
#CBC74F
secondary
#3B3D83
accent
#4FDE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CBC74F

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

Preview Lab → · Contrast checker → · Palette generator →

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