#C4B240#C4B240

#C4B240 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.8% C 0.133 H 100.2°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#C4B240
RGBrgb(196, 178, 64)
HSLhsl(52, 53%, 51%)
HSVhsv(52, 67%, 77%)
CMYKcmyk(0%, 9.2%, 67.3%, 23.1%)
CIE-LABlab(72.19, -6.67, 58.22)
CIE-LCHlch(72.19, 58.60, 96.53°)
OKLaboklab(75.8% -0.0236 0.1309)
OKLCHoklch(75.8% 0.133 100.2)
XYZxyz(39.6125, 43.9485, 11.2459)
Luminance0.4395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4B240 #4052C4
analogous
#C47040 #C4B240 #94C440
triadic
#C4B240 #40C4B2 #B240C4
tetradic
#C4B240 #40C470 #4052C4 #C44094
square
#C4B240 #40C470 #4052C4 #C44094
split-complementary
#C4B240 #4094C4 #7040C4
monochromatic
#695F20 #988A2F #C4B240 #D2C56F #E1D89E

Accessibility & contrast

On white

2.15
#C4B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#C4B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4B240
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4B240#FFFFFF#000000##000000
##C4B2401.002.159.799.79
#FFFFFF2.151.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD31
Deuteranopia (green-blind)
#C7B447
Tritanopia (blue-blind)
#D3A59B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c4b240;
/* rgb */ color: rgb(196, 178, 64);
/* oklch */ color: oklch(75.8% 0.133 100.2);
Tailwind
colors: {
  custom: {
    50: '#d9c87b',
    500: '#c4b240',
    950: '#000000',
  },
}
SCSS
$custom: #c4b240;
$custom-light: #d9c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#c4b240",
  "rgb": {
    "r": 196,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 51.818,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.75803,
    "c": 0.13305,
    "h": 100.2
  },
  "luminance": 0.43947
}

Semantic roles & 50–950 ramp

primary
#C4B240
secondary
#939BCD
accent
#5FDC4C
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C4B240

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

Preview Lab → · Contrast checker → · Palette generator →

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