#C0C940#C0C940

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

Color values

HEX#C0C940
RGBrgb(192, 201, 64)
HSLhsl(64, 56%, 52%)
HSVhsv(64, 68%, 79%)
CMYKcmyk(4.5%, 0%, 68.2%, 21.2%)
CIE-LABlab(78.08, -20.05, 64.10)
CIE-LCHlch(78.08, 67.16, 107.37°)
OKLaboklab(80.42% -0.0611 0.1435)
OKLCHoklch(80.42% 0.156 113.1)
XYZxyz(43.5515, 53.3508, 12.8530)
Luminance0.5335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0C940 #4940C9
analogous
#C98E40 #C0C940 #7BC940
triadic
#C0C940 #40C0C9 #C940C0
tetradic
#C0C940 #40C98E #4940C9 #C9407B
square
#C0C940 #40C98E #4940C9 #C9407B
split-complementary
#C0C940 #407BC9 #8E40C9
monochromatic
#6A6F1F #979F2D #C0C940 #D0D670 #DFE49F

Accessibility & contrast

On white

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

On black

11.67
#C0C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C0C940
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0C940#FFFFFF#000000##000000
##C0C9401.001.8011.6711.67
#FFFFFF1.801.0021.0021.00
#00000011.6721.001.001.00
##00000011.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#D8C34A
Tritanopia (blue-blind)
#CDBDAE
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c0c940;
/* rgb */ color: rgb(192, 201, 64);
/* oklch */ color: oklch(80.4% 0.156 113.1);
Tailwind
colors: {
  custom: {
    50: '#d6d97d',
    500: '#c0c940',
    950: '#000000',
  },
}
SCSS
$custom: #c0c940;
$custom-light: #d6d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#c0c940",
  "rgb": {
    "r": 192,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 63.942,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.80416,
    "c": 0.15593,
    "h": 113.1
  },
  "luminance": 0.5335
}

Semantic roles & 50–950 ramp

primary
#C0C940
secondary
#393578
accent
#49DF52
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C0C940

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

Preview Lab → · Contrast checker → · Palette generator →

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