#C0C731#C0C731

#C0C731 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 79.9% C 0.163 H 112.3°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#C0C731
RGBrgb(192, 199, 49)
HSLhsl(63, 60%, 49%)
HSVhsv(63, 75%, 78%)
CMYKcmyk(3.5%, 0%, 75.4%, 22%)
CIE-LABlab(77.45, -19.79, 68.69)
CIE-LCHlch(77.45, 71.48, 106.07°)
OKLaboklab(79.88% -0.0617 0.1506)
OKLCHoklch(79.88% 0.163 112.3)
XYZxyz(42.7174, 52.2761, 10.7452)
Luminance0.5228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0C731 #3831C7
analogous
#C78331 #C0C731 #75C731
triadic
#C0C731 #31C0C7 #C731C0
tetradic
#C0C731 #31C783 #3831C7 #C73175
square
#C0C731 #31C783 #3831C7 #C73175
split-complementary
#C0C731 #3175C7 #8331C7
monochromatic
#616519 #919625 #C0C731 #D2D75E #DFE38F

Accessibility & contrast

On white

1.83
#C0C731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#C0C731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C0C731
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0C731#FFFFFF#000000##000000
##C0C7311.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE09
Deuteranopia (green-blind)
#D7C13E
Tritanopia (blue-blind)
#CDBBAB
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #c0c731;
/* rgb */ color: rgb(192, 199, 49);
/* oklch */ color: oklch(79.9% 0.163 112.3);
Tailwind
colors: {
  custom: {
    50: '#d7d775',
    500: '#c0c731',
    950: '#000000',
  },
}
SCSS
$custom: #c0c731;
$custom-light: #d7d775;
$custom-dark: #000000;
JSON
{
  "hex": "#c0c731",
  "rgb": {
    "r": 192,
    "g": 199,
    "b": 49
  },
  "hsl": {
    "h": 62.8,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.79878,
    "c": 0.16276,
    "h": 112.3
  },
  "luminance": 0.52275
}

Semantic roles & 50–950 ramp

primary
#C0C731
secondary
#302D6F
accent
#44E44C
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C0C731

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

Preview Lab → · Contrast checker → · Palette generator →

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