#C7CD38#C7CD38

#C7CD38 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.8% C 0.163 H 111.8°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#C7CD38
RGBrgb(199, 205, 56)
HSLhsl(62, 60%, 51%)
HSVhsv(62, 73%, 80%)
CMYKcmyk(2.9%, 0%, 72.7%, 19.6%)
CIE-LABlab(79.67, -19.51, 68.68)
CIE-LCHlch(79.67, 71.40, 105.85°)
OKLaboklab(81.8% -0.0607 0.1516)
OKLCHoklch(81.8% 0.163 111.8)
XYZxyz(46.0998, 56.0914, 12.1389)
Luminance0.5609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7CD38 #3E38CD
analogous
#CD8838 #C7CD38 #7CCD38
triadic
#C7CD38 #38C7CD #CD38C7
tetradic
#C7CD38 #38CD88 #3E38CD #CD387C
square
#C7CD38 #38CD88 #3E38CD #CD387C
split-complementary
#C7CD38 #387CCD #8838CD
monochromatic
#6B6F1C #9BA028 #C7CD38 #D5D969 #E3E69A

Accessibility & contrast

On white

1.72
#C7CD38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#C7CD38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7CD38
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7CD38#FFFFFF#000000##000000
##C7CD381.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c7cd38;
/* rgb */ color: rgb(199, 205, 56);
/* oklch */ color: oklch(81.8% 0.163 111.8);
Tailwind
colors: {
  custom: {
    50: '#dcdc79',
    500: '#c7cd38',
    950: '#000000',
  },
}
SCSS
$custom: #c7cd38;
$custom-light: #dcdc79;
$custom-dark: #000000;
JSON
{
  "hex": "#c7cd38",
  "rgb": {
    "r": 199,
    "g": 205,
    "b": 56
  },
  "hsl": {
    "h": 62.416,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.81801,
    "c": 0.16327,
    "h": 111.8
  },
  "luminance": 0.5609
}

Semantic roles & 50–950 ramp

primary
#C7CD38
secondary
#343178
accent
#45E34B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15150A
muted
#84847D

Preview Lab

Preview with #C7CD38

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

Preview Lab → · Contrast checker → · Palette generator →

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