#C2C918#C2C918

#C2C918 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.4% C 0.174 H 112.3°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#C2C918
RGBrgb(194, 201, 24)
HSLhsl(62, 79%, 44%)
HSVhsv(62, 88%, 79%)
CMYKcmyk(3.5%, 0%, 88.1%, 21.2%)
CIE-LABlab(78.06, -20.69, 75.46)
CIE-LCHlch(78.06, 78.24, 105.33°)
OKLaboklab(80.38% -0.066 0.161)
OKLCHoklch(80.38% 0.174 112.3)
XYZxyz(43.3012, 53.3097, 8.8728)
Luminance0.5331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C918 #1F18C9
analogous
#C97818 #C2C918 #6AC918
triadic
#C2C918 #18C2C9 #C918C2
tetradic
#C2C918 #18C978 #1F18C9 #C9186A
square
#C2C918 #18C978 #1F18C9 #C9186A
split-complementary
#C2C918 #186AC9 #7818C9
monochromatic
#585C0B #8D9211 #C2C918 #E0E737 #E9EE6E

Accessibility & contrast

On white

1.80
#C2C918 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#C2C918 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C918
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C918#FFFFFF#000000##000000
##C2C9181.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9BF00
Deuteranopia (green-blind)
#DAC32E
Tritanopia (blue-blind)
#D0BCAB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c2c918;
/* rgb */ color: rgb(194, 201, 24);
/* oklch */ color: oklch(80.4% 0.174 112.3);
Tailwind
colors: {
  custom: {
    50: '#d9d96c',
    500: '#c2c918',
    950: '#000000',
  },
}
SCSS
$custom: #c2c918;
$custom-light: #d9d96c;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c918",
  "rgb": {
    "r": 194,
    "g": 201,
    "b": 24
  },
  "hsl": {
    "h": 62.373,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.80377,
    "c": 0.17396,
    "h": 112.3
  },
  "luminance": 0.53309
}

Semantic roles & 50–950 ramp

primary
#C2C918
secondary
#211E67
accent
#33F53A
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151408
muted
#84837D

Preview Lab

Preview with #C2C918

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

Preview Lab → · Contrast checker → · Palette generator →

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