#C7C931#C7C931

#C7C931 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 80.9% C 0.163 H 110.3°. Best body text is #000000 at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#C7C931
RGBrgb(199, 201, 49)
HSLhsl(61, 61%, 49%)
HSVhsv(61, 76%, 79%)
CMYKcmyk(1%, 0%, 75.6%, 21.2%)
CIE-LABlab(78.54, -17.82, 69.90)
CIE-LCHlch(78.54, 72.14, 104.31°)
OKLaboklab(80.89% -0.0566 0.1529)
OKLCHoklch(80.89% 0.163 110.3)
XYZxyz(44.9958, 54.1384, 10.9847)
Luminance0.5414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C931 #3331C9
analogous
#C97F31 #C7C931 #7BC931
triadic
#C7C931 #31C7C9 #C931C7
tetradic
#C7C931 #31C97F #3331C9 #C9317B
square
#C7C931 #31C97F #3331C9 #C9317B
split-complementary
#C7C931 #317BC9 #7F31C9
monochromatic
#666719 #969825 #C7C931 #D6D85F #E3E490

Accessibility & contrast

On white

1.78
#C7C931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.83
#C7C931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C931
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C931#FFFFFF#000000##000000
##C7C9311.001.7811.8311.83
#FFFFFF1.781.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C007
Deuteranopia (green-blind)
#DBC43E
Tritanopia (blue-blind)
#D5BCAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c7c931;
/* rgb */ color: rgb(199, 201, 49);
/* oklch */ color: oklch(80.9% 0.163 110.3);
Tailwind
colors: {
  custom: {
    50: '#dcd976',
    500: '#c7c931',
    950: '#000000',
  },
}
SCSS
$custom: #c7c931;
$custom-light: #dcd976;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c931",
  "rgb": {
    "r": 199,
    "g": 201,
    "b": 49
  },
  "hsl": {
    "h": 60.789,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.80891,
    "c": 0.16305,
    "h": 110.3
  },
  "luminance": 0.54137
}

Semantic roles & 50–950 ramp

primary
#C7C931
secondary
#2E2D71
accent
#44E446
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C7C931

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

Preview Lab → · Contrast checker → · Palette generator →

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