#C6CD28#C6CD28

#C6CD28 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.6% C 0.171 H 112.2°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#C6CD28
RGBrgb(198, 205, 40)
HSLhsl(63, 67%, 48%)
HSVhsv(63, 80%, 80%)
CMYKcmyk(3.4%, 0%, 80.5%, 19.6%)
CIE-LABlab(79.51, -20.54, 73.30)
CIE-LCHlch(79.51, 76.12, 105.66°)
OKLaboklab(81.64% -0.0648 0.1586)
OKLCHoklch(81.64% 0.171 112.2)
XYZxyz(45.5046, 55.8228, 10.3849)
Luminance0.5582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C6CD28 #2F28CD
analogous
#CD8128 #C6CD28 #74CD28
triadic
#C6CD28 #28C6CD #CD28C6
tetradic
#C6CD28 #28CD81 #2F28CD #CD2874
square
#C6CD28 #28CD81 #2F28CD #CD2874
split-complementary
#C6CD28 #2874CD #8128CD
monochromatic
#636714 #959A1E #C6CD28 #D8DE54 #E4E888

Accessibility & contrast

On white

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

On black

12.16
#C6CD28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C6CD28
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C6CD28#FFFFFF#000000##000000
##C6CD281.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#DEC738
Tritanopia (blue-blind)
#D4C0AF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c6cd28;
/* rgb */ color: rgb(198, 205, 40);
/* oklch */ color: oklch(81.6% 0.171 112.2);
Tailwind
colors: {
  custom: {
    50: '#dbdc72',
    500: '#c6cd28',
    950: '#000000',
  },
}
SCSS
$custom: #c6cd28;
$custom-light: #dbdc72;
$custom-dark: #000000;
JSON
{
  "hex": "#c6cd28",
  "rgb": {
    "r": 198,
    "g": 205,
    "b": 40
  },
  "hsl": {
    "h": 62.545,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.81636,
    "c": 0.17136,
    "h": 112.2
  },
  "luminance": 0.55822
}

Semantic roles & 50–950 ramp

primary
#C6CD28
secondary
#2C2871
accent
#3EEA45
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161509
muted
#84847D

Preview Lab

Preview with #C6CD28

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

Preview Lab → · Contrast checker → · Palette generator →

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