#C2C152#C2C152

#C2C152 is a light, vivid yellow. Relative luminance 0.502; OKLCH L 79.0% C 0.133 H 108.6°. Best body text is #000000 at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#C2C152
RGBrgb(194, 193, 82)
HSLhsl(59, 48%, 54%)
HSVhsv(59, 58%, 76%)
CMYKcmyk(0%, 0.5%, 57.7%, 23.9%)
CIE-LABlab(76.20, -14.06, 54.73)
CIE-LCHlch(76.20, 56.51, 104.41°)
OKLaboklab(79% -0.0425 0.1262)
OKLCHoklch(79% 0.133 108.6)
XYZxyz(42.8423, 50.2196, 15.4176)
Luminance0.5022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C152 #5253C2
analogous
#C28952 #C2C152 #8BC252
triadic
#C2C152 #52C2C1 #C152C2
tetradic
#C2C152 #52C289 #5253C2 #C2528B
square
#C2C152 #52C289 #5253C2 #C2528B
split-complementary
#C2C152 #528BC2 #8952C2
monochromatic
#727128 #9F9E38 #C2C152 #D2D17F #E2E1AC

Accessibility & contrast

On white

1.90
#C2C152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.04
#C2C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C152
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C152#FFFFFF#000000##000000
##C2C1521.001.9011.0411.04
#FFFFFF1.901.0021.0021.00
#00000011.0421.001.001.00
##00000011.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBA46
Deuteranopia (green-blind)
#D1BE58
Tritanopia (blue-blind)
#CFB6A9
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c2c152;
/* rgb */ color: rgb(194, 193, 82);
/* oklch */ color: oklch(79.0% 0.133 108.6);
Tailwind
colors: {
  custom: {
    50: '#d7d387',
    500: '#c2c152',
    950: '#000000',
  },
}
SCSS
$custom: #c2c152;
$custom-light: #d7d387;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c152",
  "rgb": {
    "r": 194,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 59.464,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.79,
    "c": 0.13317,
    "h": 108.6
  },
  "luminance": 0.50218
}

Semantic roles & 50–950 ramp

primary
#C2C152
secondary
#3D3E7B
accent
#52D750
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #C2C152

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

Preview Lab → · Contrast checker → · Palette generator →

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