#CBC738#CBC738

#CBC738 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 80.8% C 0.157 H 107.8°. Best body text is #000000 at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#CBC738
RGBrgb(203, 199, 56)
HSLhsl(58, 59%, 51%)
HSVhsv(58, 72%, 80%)
CMYKcmyk(0%, 2%, 72.4%, 20.4%)
CIE-LABlab(78.36, -14.83, 67.56)
CIE-LCHlch(78.36, 69.17, 102.39°)
OKLaboklab(80.84% -0.0479 0.149)
OKLCHoklch(80.84% 0.157 107.8)
XYZxyz(45.7676, 53.8304, 11.7201)
Luminance0.5383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC738 #383CCB
analogous
#CB7D38 #CBC738 #86CB38
triadic
#CBC738 #38CBC7 #C738CB
tetradic
#CBC738 #38CB7D #383CCB #CB3886
square
#CBC738 #38CB7D #383CCB #CB3886
split-complementary
#CBC738 #3886CB #7D38CB
monochromatic
#6C6A1C #9D9A29 #CBC738 #D8D569 #E4E299

Accessibility & contrast

On white

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

On black

11.77
#CBC738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC738
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC738#FFFFFF#000000##000000
##CBC7381.001.7811.7711.77
#FFFFFF1.781.0021.0021.00
#00000011.7721.001.001.00
##00000011.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF1C
Deuteranopia (green-blind)
#DAC443
Tritanopia (blue-blind)
#DABAAB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cbc738;
/* rgb */ color: rgb(203, 199, 56);
/* oklch */ color: oklch(80.8% 0.157 107.8);
Tailwind
colors: {
  custom: {
    50: '#dfd779',
    500: '#cbc738',
    950: '#000000',
  },
}
SCSS
$custom: #cbc738;
$custom-light: #dfd779;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc738",
  "rgb": {
    "r": 203,
    "g": 199,
    "b": 56
  },
  "hsl": {
    "h": 58.367,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.80838,
    "c": 0.15655,
    "h": 107.8
  },
  "luminance": 0.53829
}

Semantic roles & 50–950 ramp

primary
#CBC738
secondary
#313376
accent
#4AE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC738

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

Preview Lab → · Contrast checker → · Palette generator →

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