#F2F27F#F2F27F

#F2F27F is a very light, vivid yellow. Relative luminance 0.839; OKLCH L 93.8% C 0.138 H 108.8°. Best body text is #000000 at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#F2F27F
RGBrgb(242, 242, 127)
HSLhsl(60, 82%, 72%)
HSVhsv(60, 48%, 95%)
CMYKcmyk(0%, 0%, 47.5%, 5.1%)
CIE-LABlab(93.41, -15.39, 55.03)
CIE-LCHlch(93.41, 57.14, 105.63°)
OKLaboklab(93.79% -0.0444 0.1306)
OKLCHoklch(93.79% 0.138 108.8)
XYZxyz(72.2024, 83.9155, 32.4684)
Luminance0.8391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F27F #7F7FF2
analogous
#F2B97F #F2F27F #B9F27F
triadic
#F2F27F #7FF2F2 #F27FF2
tetradic
#F2F27F #7FF2B9 #7F7FF2 #F27FB9
square
#F2F27F #7FF2B9 #7F7FF2 #F27FB9
split-complementary
#F2F27F #7FB9F2 #B97FF2
monochromatic
#E0E017 #ECEC47 #F2F27F #F8F8B7 #FCFCE3

Accessibility & contrast

On white

1.18
#F2F27F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.78
#F2F27F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F27F
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F27F#FFFFFF#000000##000000
##F2F27F1.001.1817.7817.78
#FFFFFF1.181.0021.0021.00
#00000017.7821.001.001.00
##00000017.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA75
Deuteranopia (green-blind)
#FFEE85
Tritanopia (blue-blind)
#FFE6D7
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f2f27f;
/* rgb */ color: rgb(242, 242, 127);
/* oklch */ color: oklch(93.8% 0.138 108.8);
Tailwind
colors: {
  custom: {
    50: '#f8f6a6',
    500: '#f2f27f',
    950: '#000000',
  },
}
SCSS
$custom: #f2f27f;
$custom-light: #f8f6a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f27f",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 127
  },
  "hsl": {
    "h": 60,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.93787,
    "c": 0.13793,
    "h": 108.8
  },
  "luminance": 0.83914
}

Semantic roles & 50–950 ramp

primary
#F2F27F
secondary
#4848CD
accent
#08DE08
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#171710
muted
#858580

Preview Lab

Preview with #F2F27F

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

Preview Lab → · Contrast checker → · Palette generator →

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