#F2F875#F2F875

#F2F875 is a very light, vivid yellow. Relative luminance 0.873; OKLCH L 94.9% C 0.154 H 111.4°. Best body text is #000000 at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#F2F875
RGBrgb(242, 248, 117)
HSLhsl(63, 90%, 72%)
HSVhsv(63, 53%, 97%)
CMYKcmyk(2.4%, 0%, 52.8%, 2.7%)
CIE-LABlab(94.86, -19.14, 61.28)
CIE-LCHlch(94.86, 64.20, 107.35°)
OKLaboklab(94.91% -0.0561 0.1433)
OKLCHoklch(94.91% 0.154 111.4)
XYZxyz(73.3979, 87.2979, 29.8099)
Luminance0.8730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F875 #7B75F8
analogous
#F8BD75 #F2F875 #B1F875
triadic
#F2F875 #75F2F8 #F875F2
tetradic
#F2F875 #75F8BD #7B75F8 #F875B1
square
#F2F875 #75F8BD #7B75F8 #F875B1
split-complementary
#F2F875 #75B1F8 #BD75F8
monochromatic
#DDE70C #EDF53B #F2F875 #F7FBAF #FCFEE2

Accessibility & contrast

On white

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

On black

18.46
#F2F875 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F875
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F875#FFFFFF#000000##000000
##F2F8751.001.1418.4618.46
#FFFFFF1.141.0021.0021.00
#00000018.4621.001.001.00
##00000018.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE68
Deuteranopia (green-blind)
#FFF27C
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f875;
/* rgb */ color: rgb(242, 248, 117);
/* oklch */ color: oklch(94.9% 0.154 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9faa0',
    500: '#f2f875',
    950: '#000000',
  },
}
SCSS
$custom: #f2f875;
$custom-light: #f9faa0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f875",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 117
  },
  "hsl": {
    "h": 62.748,
    "s": 90.345,
    "l": 71.569
  },
  "oklch": {
    "l": 0.94909,
    "c": 0.15384,
    "h": 111.4
  },
  "luminance": 0.87296
}

Semantic roles & 50–950 ramp

primary
#F2F875
secondary
#453ED3
accent
#00E60B
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F875

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

Preview Lab → · Contrast checker → · Palette generator →

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