#CBC740#CBC740

#CBC740 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 80.9% C 0.152 H 107.7°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#CBC740
RGBrgb(203, 199, 64)
HSLhsl(58, 57%, 52%)
HSVhsv(58, 68%, 80%)
CMYKcmyk(0%, 2%, 68.5%, 20.4%)
CIE-LABlab(78.41, -14.45, 64.72)
CIE-LCHlch(78.41, 66.31, 102.58°)
OKLaboklab(80.89% -0.046 0.1444)
OKLCHoklch(80.89% 0.152 107.7)
XYZxyz(45.9791, 53.9150, 12.8341)
Luminance0.5391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC740 #4044CB
analogous
#CB8140 #CBC740 #8ACB40
triadic
#CBC740 #40CBC7 #C740CB
tetradic
#CBC740 #40CB81 #4044CB #CB408A
square
#CBC740 #40CB81 #4044CB #CB408A
split-complementary
#CBC740 #408ACB #8140CB
monochromatic
#726F1F #A29E2C #CBC740 #D8D570 #E5E3A0

Accessibility & contrast

On white

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

On black

11.78
#CBC740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC740
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC740#FFFFFF#000000##000000
##CBC7401.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#DAC449
Tritanopia (blue-blind)
#D9BAAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cbc740;
/* rgb */ color: rgb(203, 199, 64);
/* oklch */ color: oklch(80.9% 0.152 107.7);
Tailwind
colors: {
  custom: {
    50: '#ded77d',
    500: '#cbc740',
    950: '#000000',
  },
}
SCSS
$custom: #cbc740;
$custom-light: #ded77d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc740",
  "rgb": {
    "r": 203,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 58.273,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.80893,
    "c": 0.15158,
    "h": 107.7
  },
  "luminance": 0.53914
}

Semantic roles & 50–950 ramp

primary
#CBC740
secondary
#35377B
accent
#4CE047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC740

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

Preview Lab → · Contrast checker → · Palette generator →

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