#C7C02E#C7C02E

#C7C02E is a light, vivid yellow. Relative luminance 0.500; OKLCH L 78.9% C 0.156 H 106.6°. Best body text is #000000 at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#C7C02E
RGBrgb(199, 192, 46)
HSLhsl(57, 62%, 48%)
HSVhsv(57, 77%, 78%)
CMYKcmyk(0%, 3.5%, 76.9%, 22%)
CIE-LABlab(76.09, -13.42, 68.60)
CIE-LCHlch(76.09, 69.90, 101.07°)
OKLaboklab(78.93% -0.0446 0.1496)
OKLCHoklch(78.93% 0.156 106.6)
XYZxyz(42.8978, 50.0402, 9.9833)
Luminance0.5004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C02E #2E35C7
analogous
#C7732E #C7C02E #81C72E
triadic
#C7C02E #2EC7C0 #C02EC7
tetradic
#C7C02E #2EC773 #2E35C7 #C72E81
square
#C7C02E #2EC773 #2E35C7 #C72E81
split-complementary
#C7C02E #2E81C7 #732EC7
monochromatic
#646017 #959023 #C7C02E #D9D359 #E4E08B

Accessibility & contrast

On white

1.91
#C7C02E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.01
#C7C02E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C02E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C02E#FFFFFF#000000##000000
##C7C02E1.001.9111.0111.01
#FFFFFF1.911.0021.0021.00
#00000011.0121.001.001.00
##00000011.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B904
Deuteranopia (green-blind)
#D4BE3A
Tritanopia (blue-blind)
#D6B3A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c7c02e;
/* rgb */ color: rgb(199, 192, 46);
/* oklch */ color: oklch(78.9% 0.156 106.6);
Tailwind
colors: {
  custom: {
    50: '#dcd273',
    500: '#c7c02e',
    950: '#000000',
  },
}
SCSS
$custom: #c7c02e;
$custom-light: #dcd273;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c02e",
  "rgb": {
    "r": 199,
    "g": 192,
    "b": 46
  },
  "hsl": {
    "h": 57.255,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.78931,
    "c": 0.15609,
    "h": 106.6
  },
  "luminance": 0.50039
}

Semantic roles & 50–950 ramp

primary
#C7C02E
secondary
#2B2E6E
accent
#4AE642
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C7C02E

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

Preview Lab → · Contrast checker → · Palette generator →

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