#C7C831#C7C831

#C7C831 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 80.7% C 0.162 H 109.9°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#C7C831
RGBrgb(199, 200, 49)
HSLhsl(60, 61%, 49%)
HSVhsv(60, 76%, 78%)
CMYKcmyk(0.5%, 0%, 75.5%, 21.6%)
CIE-LABlab(78.27, -17.33, 69.65)
CIE-LCHlch(78.27, 71.77, 103.97°)
OKLaboklab(80.67% -0.0553 0.1524)
OKLCHoklch(80.67% 0.162 109.9)
XYZxyz(44.7635, 53.6737, 10.9072)
Luminance0.5367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C831 #3231C8
analogous
#C87E31 #C7C831 #7CC831
triadic
#C7C831 #31C7C8 #C831C7
tetradic
#C7C831 #31C87E #3231C8 #C8317C
square
#C7C831 #31C87E #3231C8 #C8317C
split-complementary
#C7C831 #317CC8 #7E31C8
monochromatic
#656619 #969725 #C7C831 #D7D85F #E3E490

Accessibility & contrast

On white

1.79
#C7C831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.73
#C7C831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C831
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C831#FFFFFF#000000##000000
##C7C8311.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF08
Deuteranopia (green-blind)
#DAC43E
Tritanopia (blue-blind)
#D5BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c7c831;
/* rgb */ color: rgb(199, 200, 49);
/* oklch */ color: oklch(80.7% 0.162 109.9);
Tailwind
colors: {
  custom: {
    50: '#dcd875',
    500: '#c7c831',
    950: '#000000',
  },
}
SCSS
$custom: #c7c831;
$custom-light: #dcd875;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c831",
  "rgb": {
    "r": 199,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 60.397,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.80674,
    "c": 0.16208,
    "h": 109.9
  },
  "luminance": 0.53672
}

Semantic roles & 50–950 ramp

primary
#C7C831
secondary
#2E2D70
accent
#44E445
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C7C831

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

Preview Lab → · Contrast checker → · Palette generator →

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