#C8CD38#C8CD38

#C8CD38 is a light, vivid yellow. Relative luminance 0.562; OKLCH L 81.9% C 0.163 H 111.4°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#C8CD38
RGBrgb(200, 205, 56)
HSLhsl(62, 60%, 51%)
HSVhsv(62, 73%, 80%)
CMYKcmyk(2.4%, 0%, 72.7%, 19.6%)
CIE-LABlab(79.74, -19.09, 68.78)
CIE-LCHlch(79.74, 71.38, 105.51°)
OKLaboklab(81.88% -0.0596 0.1517)
OKLCHoklch(81.88% 0.163 111.4)
XYZxyz(46.3661, 56.2287, 12.1514)
Luminance0.5623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8CD38 #3D38CD
analogous
#CD8738 #C8CD38 #7DCD38
triadic
#C8CD38 #38C8CD #CD38C8
tetradic
#C8CD38 #38CD87 #3D38CD #CD387D
square
#C8CD38 #38CD87 #3D38CD #CD387D
split-complementary
#C8CD38 #387DCD #8738CD
monochromatic
#6C6F1C #9CA028 #C8CD38 #D6D969 #E3E69A

Accessibility & contrast

On white

1.71
#C8CD38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.25
#C8CD38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8CD38
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8CD38#FFFFFF#000000##000000
##C8CD381.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC419
Deuteranopia (green-blind)
#DEC744
Tritanopia (blue-blind)
#D6C0B0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #c8cd38;
/* rgb */ color: rgb(200, 205, 56);
/* oklch */ color: oklch(81.9% 0.163 111.4);
Tailwind
colors: {
  custom: {
    50: '#dcdc79',
    500: '#c8cd38',
    950: '#000000',
  },
}
SCSS
$custom: #c8cd38;
$custom-light: #dcdc79;
$custom-dark: #000000;
JSON
{
  "hex": "#c8cd38",
  "rgb": {
    "r": 200,
    "g": 205,
    "b": 56
  },
  "hsl": {
    "h": 62.013,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.81883,
    "c": 0.16303,
    "h": 111.4
  },
  "luminance": 0.56228
}

Semantic roles & 50–950 ramp

primary
#C8CD38
secondary
#343178
accent
#45E34A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #C8CD38

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

Preview Lab → · Contrast checker → · Palette generator →

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