#C7CC38#C7CC38

#C7CC38 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.6% C 0.162 H 111.5°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#C7CC38
RGBrgb(199, 204, 56)
HSLhsl(62, 59%, 51%)
HSVhsv(62, 73%, 80%)
CMYKcmyk(2.5%, 0%, 72.5%, 20%)
CIE-LABlab(79.39, -19.01, 68.42)
CIE-LCHlch(79.39, 71.02, 105.53°)
OKLaboklab(81.58% -0.0593 0.151)
OKLCHoklch(81.58% 0.162 111.5)
XYZxyz(45.8614, 55.6145, 12.0594)
Luminance0.5561 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7CC38 #3D38CC
analogous
#CC8738 #C7CC38 #7DCC38
triadic
#C7CC38 #38C7CC #CC38C7
tetradic
#C7CC38 #38CC87 #3D38CC #CC387D
square
#C7CC38 #38CC87 #3D38CC #CC387D
split-complementary
#C7CC38 #387DCC #8738CC
monochromatic
#6B6E1C #9A9E29 #C7CC38 #D5D869 #E2E599

Accessibility & contrast

On white

1.73
#C7CC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#C7CC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7CC38
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7CC38#FFFFFF#000000##000000
##C7CC381.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC31A
Deuteranopia (green-blind)
#DDC744
Tritanopia (blue-blind)
#D5BFB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c7cc38;
/* rgb */ color: rgb(199, 204, 56);
/* oklch */ color: oklch(81.6% 0.162 111.5);
Tailwind
colors: {
  custom: {
    50: '#dcdb79',
    500: '#c7cc38',
    950: '#000000',
  },
}
SCSS
$custom: #c7cc38;
$custom-light: #dcdb79;
$custom-dark: #000000;
JSON
{
  "hex": "#c7cc38",
  "rgb": {
    "r": 199,
    "g": 204,
    "b": 56
  },
  "hsl": {
    "h": 62.027,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.81584,
    "c": 0.16225,
    "h": 111.5
  },
  "luminance": 0.55613
}

Semantic roles & 50–950 ramp

primary
#C7CC38
secondary
#343177
accent
#45E24B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7CC38

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

Preview Lab → · Contrast checker → · Palette generator →

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