#C2C252#C2C252

#C2C252 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 79.2% C 0.134 H 109.1°. Best body text is #000000 at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#C2C252
RGBrgb(194, 194, 82)
HSLhsl(60, 48%, 54%)
HSVhsv(60, 58%, 76%)
CMYKcmyk(0%, 0%, 57.7%, 23.9%)
CIE-LABlab(76.47, -14.57, 55.03)
CIE-LCHlch(76.47, 56.93, 104.83°)
OKLaboklab(79.22% -0.0439 0.1268)
OKLCHoklch(79.22% 0.134 109.1)
XYZxyz(43.0641, 50.6632, 15.4915)
Luminance0.5066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C252 #5252C2
analogous
#C28A52 #C2C252 #8AC252
triadic
#C2C252 #52C2C2 #C252C2
tetradic
#C2C252 #52C28A #5252C2 #C2528A
square
#C2C252 #52C28A #5252C2 #C2528A
split-complementary
#C2C252 #528AC2 #8A52C2
monochromatic
#727228 #9F9F38 #C2C252 #D2D27F #E2E2AC

Accessibility & contrast

On white

1.89
#C2C252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.13
#C2C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C252
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C252#FFFFFF#000000##000000
##C2C2521.001.8911.1311.13
#FFFFFF1.891.0021.0021.00
#00000011.1321.001.001.00
##00000011.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB46
Deuteranopia (green-blind)
#D2BE58
Tritanopia (blue-blind)
#CFB7AA
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c2c252;
/* rgb */ color: rgb(194, 194, 82);
/* oklch */ color: oklch(79.2% 0.134 109.1);
Tailwind
colors: {
  custom: {
    50: '#d7d487',
    500: '#c2c252',
    950: '#000000',
  },
}
SCSS
$custom: #c2c252;
$custom-light: #d7d487;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c252",
  "rgb": {
    "r": 194,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.79216,
    "c": 0.13424,
    "h": 109.1
  },
  "luminance": 0.50662
}

Semantic roles & 50–950 ramp

primary
#C2C252
secondary
#3D3D7B
accent
#50D750
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #C2C252

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

Preview Lab → · Contrast checker → · Palette generator →

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