#EDF798#EDF798

#EDF798 is a very light, moderate yellow. Relative luminance 0.868; OKLCH L 94.8% C 0.119 H 113.6°. Best body text is #000000 at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#EDF798
RGBrgb(237, 247, 152)
HSLhsl(66, 86%, 78%)
HSVhsv(66, 38%, 97%)
CMYKcmyk(4%, 0%, 38.5%, 3.1%)
CIE-LABlab(94.65, -17.27, 44.54)
CIE-LCHlch(94.65, 47.77, 111.19°)
OKLaboklab(94.78% -0.0475 0.1088)
OKLCHoklch(94.78% 0.119 113.6)
XYZxyz(73.8539, 86.7940, 42.5620)
Luminance0.8679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EDF798 #A298F7
analogous
#F7D198 #EDF798 #BDF798
triadic
#EDF798 #98EDF7 #F798ED
tetradic
#EDF798 #98F7D1 #A298F7 #F798BD
square
#EDF798 #98F7D1 #A298F7 #F798BD
split-complementary
#EDF798 #98BDF7 #D198F7
monochromatic
#D9EE26 #E3F35F #EDF798 #F7FBD1 #FAFDE3

Accessibility & contrast

On white

1.14
#EDF798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.36
#EDF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EDF798
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EDF798#FFFFFF#000000##000000
##EDF7981.001.1418.3618.36
#FFFFFF1.141.0021.0021.00
#00000018.3621.001.001.00
##00000018.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF91
Deuteranopia (green-blind)
#FFF19C
Tritanopia (blue-blind)
#F8EDE0
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #edf798;
/* rgb */ color: rgb(237, 247, 152);
/* oklch */ color: oklch(94.8% 0.119 113.6);
Tailwind
colors: {
  custom: {
    50: '#f4f9b7',
    500: '#edf798',
    950: '#000000',
  },
}
SCSS
$custom: #edf798;
$custom-light: #f4f9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#edf798",
  "rgb": {
    "r": 237,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 66.316,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.94783,
    "c": 0.11867,
    "h": 113.6
  },
  "luminance": 0.86793
}

Semantic roles & 50–950 ramp

primary
#EDF798
secondary
#6A5DD6
accent
#03E21B
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #EDF798

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

Preview Lab → · Contrast checker → · Palette generator →

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