#F2F770#F2F770

#F2F770 is a very light, vivid yellow. Relative luminance 0.866; OKLCH L 94.6% C 0.157 H 111.0°. Best body text is #000000 at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#F2F770
RGBrgb(242, 247, 112)
HSLhsl(62, 89%, 70%)
HSVhsv(62, 55%, 97%)
CMYKcmyk(2%, 0%, 54.7%, 3.1%)
CIE-LABlab(94.56, -19.05, 63.13)
CIE-LCHlch(94.56, 65.94, 106.79°)
OKLaboklab(94.65% -0.0563 0.1467)
OKLCHoklch(94.65% 0.157 111)
XYZxyz(72.8051, 86.5702, 28.2006)
Luminance0.8657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F770 #7570F7
analogous
#F7B870 #F2F770 #AFF770
triadic
#F2F770 #70F2F7 #F770F2
tetradic
#F2F770 #70F7B8 #7570F7 #F770AF
square
#F2F770 #70F7B8 #7570F7 #F770AF
split-complementary
#F2F770 #70AFF7 #B870F7
monochromatic
#D8E00D #EDF436 #F2F770 #F7FAAA #FCFDE2

Accessibility & contrast

On white

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

On black

18.31
#F2F770 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F770
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F770#FFFFFF#000000##000000
##F2F7701.001.1518.3118.31
#FFFFFF1.151.0021.0021.00
#00000018.3121.001.001.00
##00000018.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED62
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f2f770;
/* rgb */ color: rgb(242, 247, 112);
/* oklch */ color: oklch(94.6% 0.157 111.0);
Tailwind
colors: {
  custom: {
    50: '#f9f99d',
    500: '#f2f770',
    950: '#000000',
  },
}
SCSS
$custom: #f2f770;
$custom-light: #f9f99d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f770",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 112
  },
  "hsl": {
    "h": 62.222,
    "s": 89.404,
    "l": 70.392
  },
  "oklch": {
    "l": 0.94647,
    "c": 0.15715,
    "h": 111
  },
  "luminance": 0.86569
}

Semantic roles & 50–950 ramp

primary
#F2F770
secondary
#3F3AD2
accent
#00E608
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F770

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

Preview Lab → · Contrast checker → · Palette generator →

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