#C7D240#C7D240

#C7D240 is a very light, vivid yellow. Relative luminance 0.586; OKLCH L 82.9% C 0.164 H 113.7°. Best body text is #000000 at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#C7D240
RGBrgb(199, 210, 64)
HSLhsl(65, 62%, 54%)
HSVhsv(65, 70%, 82%)
CMYKcmyk(5.2%, 0%, 69.5%, 17.6%)
CIE-LABlab(81.07, -21.57, 67.25)
CIE-LCHlch(81.07, 70.63, 107.78°)
OKLaboklab(82.94% -0.0657 0.1499)
OKLCHoklch(82.94% 0.164 113.7)
XYZxyz(47.5266, 58.6064, 13.6580)
Luminance0.5860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D240 #4B40D2
analogous
#D29440 #C7D240 #7ED240
triadic
#C7D240 #40C7D2 #D240C7
tetradic
#C7D240 #40D294 #4B40D2 #D2407E
square
#C7D240 #40D294 #4B40D2 #D2407E
split-complementary
#C7D240 #407ED2 #9440D2
monochromatic
#747B1D #A2AC29 #C7D240 #D6DE72 #E4E9A3

Accessibility & contrast

On white

1.65
#C7D240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.72
#C7D240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D240
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D240#FFFFFF#000000##000000
##C7D2401.001.6512.7212.72
#FFFFFF1.651.0021.0021.00
#00000012.7221.001.001.00
##00000012.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C827
Deuteranopia (green-blind)
#E1CB4B
Tritanopia (blue-blind)
#D4C6B5
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #c7d240;
/* rgb */ color: rgb(199, 210, 64);
/* oklch */ color: oklch(82.9% 0.164 113.7);
Tailwind
colors: {
  custom: {
    50: '#dbdf7e',
    500: '#c7d240',
    950: '#000000',
  },
}
SCSS
$custom: #c7d240;
$custom-light: #dbdf7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d240",
  "rgb": {
    "r": 199,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 64.521,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.82944,
    "c": 0.16367,
    "h": 113.7
  },
  "luminance": 0.58605
}

Semantic roles & 50–950 ramp

primary
#C7D240
secondary
#3A3483
accent
#43E54F
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150A
muted
#84847D

Preview Lab

Preview with #C7D240

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

Preview Lab → · Contrast checker → · Palette generator →

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