#F2F795#F2F795

#F2F795 is a very light, vivid yellow. Relative luminance 0.876; OKLCH L 95.1% C 0.121 H 111.0°. Best body text is #000000 at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#F2F795
RGBrgb(242, 247, 149)
HSLhsl(63, 86%, 78%)
HSVhsv(63, 40%, 97%)
CMYKcmyk(2%, 0%, 39.7%, 3.1%)
CIE-LABlab(94.98, -15.70, 46.49)
CIE-LCHlch(94.98, 49.07, 108.66°)
OKLaboklab(95.12% -0.0434 0.113)
OKLCHoklch(95.12% 0.121 111)
XYZxyz(75.3044, 87.5700, 41.3637)
Luminance0.8757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F795 #9A95F7
analogous
#F7CB95 #F2F795 #C1F795
triadic
#F2F795 #95F2F7 #F795F2
tetradic
#F2F795 #95F7CB #9A95F7 #F795C1
square
#F2F795 #95F7CB #9A95F7 #F795C1
split-complementary
#F2F795 #95C1F7 #CB95F7
monochromatic
#E4EE23 #EBF35C #F2F795 #F9FBCE #FCFDE3

Accessibility & contrast

On white

1.13
#F2F795 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.51
#F2F795 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F795
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F795#FFFFFF#000000##000000
##F2F7951.001.1318.5118.51
#FFFFFF1.131.0021.0021.00
#00000018.5121.001.001.00
##00000018.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF8D
Deuteranopia (green-blind)
#FFF299
Tritanopia (blue-blind)
#FEECDF
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f795;
/* rgb */ color: rgb(242, 247, 149);
/* oklch */ color: oklch(95.1% 0.121 111.0);
Tailwind
colors: {
  custom: {
    50: '#f8f9b5',
    500: '#f2f795',
    950: '#000000',
  },
}
SCSS
$custom: #f2f795;
$custom-light: #f8f9b5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f795",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 149
  },
  "hsl": {
    "h": 63.061,
    "s": 85.965,
    "l": 77.647
  },
  "oklch": {
    "l": 0.95122,
    "c": 0.12106,
    "h": 111
  },
  "luminance": 0.87569
}

Semantic roles & 50–950 ramp

primary
#F2F795
secondary
#605AD6
accent
#03E20E
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F795

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

Preview Lab → · Contrast checker → · Palette generator →

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