#F2F397#F2F397

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

Color values

HEX#F2F397
RGBrgb(242, 243, 151)
HSLhsl(61, 79%, 77%)
HSVhsv(61, 38%, 95%)
CMYKcmyk(0.4%, 0%, 37.9%, 4.7%)
CIE-LABlab(93.98, -13.53, 44.25)
CIE-LCHlch(93.98, 46.27, 107.00°)
OKLaboklab(94.33% -0.0371 0.108)
OKLCHoklch(94.33% 0.114 108.9)
XYZxyz(74.2554, 85.2142, 41.8085)
Luminance0.8521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F397 #9897F3
analogous
#F3C697 #F2F397 #C4F397
triadic
#F2F397 #97F2F3 #F397F2
tetradic
#F2F397 #97F3C6 #9897F3 #F397C4
square
#F2F397 #97F3C6 #9897F3 #F397C4
split-complementary
#F2F397 #97C4F3 #C697F3
monochromatic
#E4E629 #EBED60 #F2F397 #F9F9CE #FCFCE4

Accessibility & contrast

On white

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

On black

18.04
#F2F397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F397
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F397#FFFFFF#000000##000000
##F2F3971.001.1618.0418.04
#FFFFFF1.161.0021.0021.00
#00000018.0421.001.001.00
##00000018.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC90
Deuteranopia (green-blind)
#FFEF9B
Tritanopia (blue-blind)
#FEE8DC
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f2f397;
/* rgb */ color: rgb(242, 243, 151);
/* oklch */ color: oklch(94.3% 0.114 108.9);
Tailwind
colors: {
  custom: {
    50: '#f7f7b7',
    500: '#f2f397',
    950: '#000000',
  },
}
SCSS
$custom: #f2f397;
$custom-light: #f7f7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f397",
  "rgb": {
    "r": 242,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 60.652,
    "s": 79.31,
    "l": 77.255
  },
  "oklch": {
    "l": 0.94332,
    "c": 0.11418,
    "h": 108.9
  },
  "luminance": 0.85213
}

Semantic roles & 50–950 ramp

primary
#F2F397
secondary
#5F5DD1
accent
#0ADC0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F397

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

Preview Lab → · Contrast checker → · Palette generator →

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