#CBC948#CBC948

#CBC948 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.148 H 108.4°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#CBC948
RGBrgb(203, 201, 72)
HSLhsl(59, 56%, 54%)
HSVhsv(59, 65%, 80%)
CMYKcmyk(0%, 1%, 64.5%, 20.4%)
CIE-LABlab(79.01, -15.00, 62.20)
CIE-LCHlch(79.01, 63.99, 103.56°)
OKLaboklab(81.38% -0.0468 0.1404)
OKLCHoklch(81.38% 0.148 108.4)
XYZxyz(46.6865, 54.9391, 14.2747)
Luminance0.5494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC948 #484ACB
analogous
#CB8848 #CBC948 #8CCB48
triadic
#CBC948 #48CBC9 #C948CB
tetradic
#CBC948 #48CB88 #484ACB #CB488C
square
#CBC948 #48CB88 #484ACB #CB488C
split-complementary
#CBC948 #488CCB #8848CB
monochromatic
#777622 #A6A52F #CBC948 #D9D778 #E6E5A7

Accessibility & contrast

On white

1.75
#CBC948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#CBC948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC948
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC948#FFFFFF#000000##000000
##CBC9481.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C137
Deuteranopia (green-blind)
#DBC650
Tritanopia (blue-blind)
#D9BDAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cbc948;
/* rgb */ color: rgb(203, 201, 72);
/* oklch */ color: oklch(81.4% 0.148 108.4);
Tailwind
colors: {
  custom: {
    50: '#ded981',
    500: '#cbc948',
    950: '#000000',
  },
}
SCSS
$custom: #cbc948;
$custom-light: #ded981;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc948",
  "rgb": {
    "r": 203,
    "g": 201,
    "b": 72
  },
  "hsl": {
    "h": 59.084,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81385,
    "c": 0.14799,
    "h": 108.4
  },
  "luminance": 0.54938
}

Semantic roles & 50–950 ramp

primary
#CBC948
secondary
#38397F
accent
#4BDF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CBC948

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

Preview Lab → · Contrast checker → · Palette generator →

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