#C0C842#C0C842

#C0C842 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.2% C 0.153 H 112.7°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#C0C842
RGBrgb(192, 200, 66)
HSLhsl(64, 55%, 52%)
HSVhsv(64, 67%, 78%)
CMYKcmyk(4%, 0%, 67%, 21.6%)
CIE-LABlab(77.82, -19.45, 63.08)
CIE-LCHlch(77.82, 66.01, 107.14°)
OKLaboklab(80.21% -0.0592 0.1416)
OKLCHoklch(80.21% 0.154 112.7)
XYZxyz(43.3771, 52.9093, 13.0807)
Luminance0.5291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0C842 #4A42C8
analogous
#C88D42 #C0C842 #7DC842
triadic
#C0C842 #42C0C8 #C842C0
tetradic
#C0C842 #42C88D #4A42C8 #C8427D
square
#C0C842 #42C88D #4A42C8 #C8427D
split-complementary
#C0C842 #427DC8 #8D42C8
monochromatic
#6B6F20 #989F2E #C0C842 #D0D671 #E0E4A1

Accessibility & contrast

On white

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

On black

11.58
#C0C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C0C842
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0C842#FFFFFF#000000##000000
##C0C8421.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#D7C24C
Tritanopia (blue-blind)
#CDBCAD
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #c0c842;
/* rgb */ color: rgb(192, 200, 66);
/* oklch */ color: oklch(80.2% 0.153 112.7);
Tailwind
colors: {
  custom: {
    50: '#d6d87e',
    500: '#c0c842',
    950: '#000000',
  },
}
SCSS
$custom: #c0c842;
$custom-light: #d6d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#c0c842",
  "rgb": {
    "r": 192,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 63.582,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80212,
    "c": 0.1535,
    "h": 112.7
  },
  "luminance": 0.52908
}

Semantic roles & 50–950 ramp

primary
#C0C842
secondary
#3A3679
accent
#4ADE52
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C0C842

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

Preview Lab → · Contrast checker → · Palette generator →

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