#EBF798#EBF798

#EBF798 is a very light, moderate yellow. Relative luminance 0.865; OKLCH L 94.6% C 0.119 H 114.6°. Best body text is #000000 at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#EBF798
RGBrgb(235, 247, 152)
HSLhsl(68, 86%, 78%)
HSVhsv(68, 38%, 97%)
CMYKcmyk(4.9%, 0%, 38.5%, 3.1%)
CIE-LABlab(94.51, -18.02, 44.33)
CIE-LCHlch(94.51, 47.85, 112.13°)
OKLaboklab(94.63% -0.0495 0.1083)
OKLCHoklch(94.63% 0.119 114.6)
XYZxyz(73.1897, 86.4515, 42.5309)
Luminance0.8645 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EBF798 #A498F7
analogous
#F7D398 #EBF798 #BBF798
triadic
#EBF798 #98EBF7 #F798EB
tetradic
#EBF798 #98F7D3 #A498F7 #F798BB
square
#EBF798 #98F7D3 #A498F7 #F798BB
split-complementary
#EBF798 #98BBF7 #D398F7
monochromatic
#D5EE26 #E0F35F #EBF798 #F6FBD1 #F9FDE3

Accessibility & contrast

On white

1.15
#EBF798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.29
#EBF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EBF798
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EBF798#FFFFFF#000000##000000
##EBF7981.001.1518.2918.29
#FFFFFF1.151.0021.0021.00
#00000018.2921.001.001.00
##00000018.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE91
Deuteranopia (green-blind)
#FFF09C
Tritanopia (blue-blind)
#F5EDE0
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ebf798;
/* rgb */ color: rgb(235, 247, 152);
/* oklch */ color: oklch(94.6% 0.119 114.6);
Tailwind
colors: {
  custom: {
    50: '#f2f9b7',
    500: '#ebf798',
    950: '#000000',
  },
}
SCSS
$custom: #ebf798;
$custom-light: #f2f9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ebf798",
  "rgb": {
    "r": 235,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 67.579,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.9463,
    "c": 0.11908,
    "h": 114.6
  },
  "luminance": 0.86451
}

Semantic roles & 50–950 ramp

primary
#EBF798
secondary
#6C5DD6
accent
#03E220
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #EBF798

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

Preview Lab → · Contrast checker → · Palette generator →

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