#C0C918#C0C918

#C0C918 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.2% C 0.175 H 113.0°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#C0C918
RGBrgb(192, 201, 24)
HSLhsl(63, 79%, 44%)
HSVhsv(63, 88%, 79%)
CMYKcmyk(4.5%, 0%, 88.1%, 21.2%)
CIE-LABlab(77.90, -21.54, 75.27)
CIE-LCHlch(77.90, 78.29, 105.97°)
OKLaboklab(80.22% -0.0682 0.1606)
OKLCHoklch(80.22% 0.175 113)
XYZxyz(42.7913, 53.0467, 8.8489)
Luminance0.5305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0C918 #2118C9
analogous
#C97A18 #C0C918 #68C918
triadic
#C0C918 #18C0C9 #C918C0
tetradic
#C0C918 #18C97A #2118C9 #C91868
square
#C0C918 #18C97A #2118C9 #C91868
split-complementary
#C0C918 #1868C9 #7A18C9
monochromatic
#585C0B #8C9211 #C0C918 #DEE737 #E7EE6E

Accessibility & contrast

On white

1.81
#C0C918 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.61
#C0C918 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C0C918
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0C918#FFFFFF#000000##000000
##C0C9181.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c0c918;
/* rgb */ color: rgb(192, 201, 24);
/* oklch */ color: oklch(80.2% 0.175 113.0);
Tailwind
colors: {
  custom: {
    50: '#d7d96c',
    500: '#c0c918',
    950: '#000000',
  },
}
SCSS
$custom: #c0c918;
$custom-light: #d7d96c;
$custom-dark: #000000;
JSON
{
  "hex": "#c0c918",
  "rgb": {
    "r": 192,
    "g": 201,
    "b": 24
  },
  "hsl": {
    "h": 63.051,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.80215,
    "c": 0.17453,
    "h": 113
  },
  "luminance": 0.53046
}

Semantic roles & 50–950 ramp

primary
#C0C918
secondary
#221E67
accent
#33F53D
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151408
muted
#84837D

Preview Lab

Preview with #C0C918

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

Preview Lab → · Contrast checker → · Palette generator →

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