#F2F398#F2F398

#F2F398 is a very light, moderate yellow. Relative luminance 0.852; OKLCH L 94.3% C 0.113 H 108.9°. Best body text is #000000 at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#F2F398
RGBrgb(242, 243, 152)
HSLhsl(61, 79%, 77%)
HSVhsv(61, 37%, 95%)
CMYKcmyk(0.4%, 0%, 37.4%, 4.7%)
CIE-LABlab(93.99, -13.42, 43.77)
CIE-LCHlch(93.99, 45.78, 107.04°)
OKLaboklab(94.35% -0.0367 0.107)
OKLCHoklch(94.35% 0.113 108.9)
XYZxyz(74.3369, 85.2468, 42.2380)
Luminance0.8525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F398 #9998F3
analogous
#F3C698 #F2F398 #C5F398
triadic
#F2F398 #98F2F3 #F398F2
tetradic
#F2F398 #98F3C6 #9998F3 #F398C5
square
#F2F398 #98F3C6 #9998F3 #F398C5
split-complementary
#F2F398 #98C5F3 #C698F3
monochromatic
#E4E62A #EBED61 #F2F398 #F9F9CF #FCFCE4

Accessibility & contrast

On white

1.16
#F2F398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.05
#F2F398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F398
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F398#FFFFFF#000000##000000
##F2F3981.001.1618.0518.05
#FFFFFF1.161.0021.0021.00
#00000018.0521.001.001.00
##00000018.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC91
Deuteranopia (green-blind)
#FFEF9C
Tritanopia (blue-blind)
#FEE9DC
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f2f398;
/* rgb */ color: rgb(242, 243, 152);
/* oklch */ color: oklch(94.3% 0.113 108.9);
Tailwind
colors: {
  custom: {
    50: '#f7f7b7',
    500: '#f2f398',
    950: '#000000',
  },
}
SCSS
$custom: #f2f398;
$custom-light: #f7f7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f398",
  "rgb": {
    "r": 242,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 60.659,
    "s": 79.13,
    "l": 77.451
  },
  "oklch": {
    "l": 0.94348,
    "c": 0.11308,
    "h": 108.9
  },
  "luminance": 0.85245
}

Semantic roles & 50–950 ramp

primary
#F2F398
secondary
#605ED1
accent
#0ADB0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F398

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

Preview Lab → · Contrast checker → · Palette generator →

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