#C4B242#C4B242

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

Color values

HEX#C4B242
RGBrgb(196, 178, 66)
HSLhsl(52, 52%, 51%)
HSVhsv(52, 66%, 77%)
CMYKcmyk(0%, 9.2%, 66.3%, 23.1%)
CIE-LABlab(72.21, -6.55, 57.41)
CIE-LCHlch(72.21, 57.78, 96.51°)
OKLaboklab(75.82% -0.023 0.1295)
OKLCHoklch(75.82% 0.132 100.1)
XYZxyz(39.6704, 43.9717, 11.5510)
Luminance0.4397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4B242 #4254C4
analogous
#C47142 #C4B242 #95C442
triadic
#C4B242 #42C4B2 #B242C4
tetradic
#C4B242 #42C471 #4254C4 #C44295
square
#C4B242 #42C471 #4254C4 #C44295
split-complementary
#C4B242 #4295C4 #7142C4
monochromatic
#6A6021 #998A30 #C4B242 #D3C571 #E1D89F

Accessibility & contrast

On white

2.14
#C4B242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C4B242#FFFFFF#000000##000000
##C4B2421.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#C7B448
Tritanopia (blue-blind)
#D3A69B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c4b242;
/* rgb */ color: rgb(196, 178, 66);
/* oklch */ color: oklch(75.8% 0.132 100.1);
Tailwind
colors: {
  custom: {
    50: '#d9c87c',
    500: '#c4b242',
    950: '#000000',
  },
}
SCSS
$custom: #c4b242;
$custom-light: #d9c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#c4b242",
  "rgb": {
    "r": 196,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 51.692,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.7582,
    "c": 0.13157,
    "h": 100.1
  },
  "luminance": 0.4397
}

Semantic roles & 50–950 ramp

primary
#C4B242
secondary
#949CCE
accent
#60DC4C
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C4B242

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

Preview Lab → · Contrast checker → · Palette generator →

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