#CFE340#CFE340

#CFE340 is a very light, vivid yellow. Relative luminance 0.686; OKLCH L 87.3% C 0.180 H 116.4°. Best body text is #000000 at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#CFE340
RGBrgb(207, 227, 64)
HSLhsl(67, 74%, 57%)
HSVhsv(67, 72%, 89%)
CMYKcmyk(8.8%, 0%, 71.8%, 11%)
CIE-LABlab(86.29, -26.48, 72.54)
CIE-LCHlch(86.29, 77.22, 110.05°)
OKLaboklab(87.28% -0.0798 0.1608)
OKLCHoklch(87.28% 0.18 116.4)
XYZxyz(54.1280, 68.5745, 15.2343)
Luminance0.6857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFE340 #5440E3
analogous
#E3A640 #CFE340 #7EE340
triadic
#CFE340 #40CFE3 #E340CF
tetradic
#CFE340 #40E3A6 #5440E3 #E3407E
square
#CFE340 #40E3A6 #5440E3 #E3407E
split-complementary
#CFE340 #407EE3 #A640E3
monochromatic
#849316 #B3C81D #CFE340 #DCEB75 #EAF3AB

Accessibility & contrast

On white

1.43
#CFE340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.71
#CFE340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFE340
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFE340#FFFFFF#000000##000000
##CFE3401.001.4314.7114.71
#FFFFFF1.431.0021.0021.00
#00000014.7121.001.001.00
##00000014.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3D720
Deuteranopia (green-blind)
#F1D94E
Tritanopia (blue-blind)
#DCD6C4
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #cfe340;
/* rgb */ color: rgb(207, 227, 64);
/* oklch */ color: oklch(87.3% 0.180 116.4);
Tailwind
colors: {
  custom: {
    50: '#e1eb80',
    500: '#cfe340',
    950: '#000000',
  },
}
SCSS
$custom: #cfe340;
$custom-light: #e1eb80;
$custom-dark: #000000;
JSON
{
  "hex": "#cfe340",
  "rgb": {
    "r": 207,
    "g": 227,
    "b": 64
  },
  "hsl": {
    "h": 67.362,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.87277,
    "c": 0.17951,
    "h": 116.4
  },
  "luminance": 0.68574
}

Semantic roles & 50–950 ramp

primary
#CFE340
secondary
#3C3097
accent
#37F14E
background
#FEFEFB
surface
#FDFDF2
border
#D5D5CC
text
#16160B
muted
#84847E

Preview Lab

Preview with #CFE340

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

Preview Lab → · Contrast checker → · Palette generator →

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