#F2F774#F2F774

#F2F774 is a very light, vivid yellow. Relative luminance 0.867; OKLCH L 94.7% C 0.154 H 111.0°. Best body text is #000000 at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#F2F774
RGBrgb(242, 247, 116)
HSLhsl(62, 89%, 71%)
HSVhsv(62, 53%, 97%)
CMYKcmyk(2%, 0%, 53%, 3.1%)
CIE-LABlab(94.59, -18.74, 61.41)
CIE-LCHlch(94.59, 64.21, 106.97°)
OKLaboklab(94.69% -0.055 0.1434)
OKLCHoklch(94.69% 0.154 111)
XYZxyz(73.0328, 86.6613, 29.3997)
Luminance0.8666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F774 #7974F7
analogous
#F7BA74 #F2F774 #B0F774
triadic
#F2F774 #74F2F7 #F774F2
tetradic
#F2F774 #74F7BA #7974F7 #F774B0
square
#F2F774 #74F7BA #7974F7 #F774B0
split-complementary
#F2F774 #74B0F7 #BA74F7
monochromatic
#DBE40D #EDF43A #F2F774 #F7FAAE #FCFDE2

Accessibility & contrast

On white

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

On black

18.33
#F2F774 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F774
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F774#FFFFFF#000000##000000
##F2F7741.001.1518.3318.33
#FFFFFF1.151.0021.0021.00
#00000018.3321.001.001.00
##00000018.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED67
Deuteranopia (green-blind)
#FFF17B
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f2f774;
/* rgb */ color: rgb(242, 247, 116);
/* oklch */ color: oklch(94.7% 0.154 111.0);
Tailwind
colors: {
  custom: {
    50: '#f9f9a0',
    500: '#f2f774',
    950: '#000000',
  },
}
SCSS
$custom: #f2f774;
$custom-light: #f9f9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f774",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 116
  },
  "hsl": {
    "h": 62.29,
    "s": 89.116,
    "l": 71.176
  },
  "oklch": {
    "l": 0.9469,
    "c": 0.15363,
    "h": 111
  },
  "luminance": 0.8666
}

Semantic roles & 50–950 ramp

primary
#F2F774
secondary
#433DD2
accent
#00E609
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F774

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

Preview Lab → · Contrast checker → · Palette generator →

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