#F2F07E#F2F07E

#F2F07E is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.4% C 0.137 H 107.9°. Best body text is #000000 at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#F2F07E
RGBrgb(242, 240, 126)
HSLhsl(59, 82%, 72%)
HSVhsv(59, 48%, 95%)
CMYKcmyk(0%, 0.8%, 47.9%, 5.1%)
CIE-LABlab(92.89, -14.50, 54.86)
CIE-LCHlch(92.89, 56.74, 104.81°)
OKLaboklab(93.36% -0.042 0.1301)
OKLCHoklch(93.36% 0.137 107.9)
XYZxyz(71.5456, 82.7056, 31.9295)
Luminance0.8270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F07E #7E80F2
analogous
#F2B67E #F2F07E #BAF27E
triadic
#F2F07E #7EF2F0 #F07EF2
tetradic
#F2F07E #7EF2B6 #7E80F2 #F27EBA
square
#F2F07E #7EF2B6 #7E80F2 #F27EBA
split-complementary
#F2F07E #7EBAF2 #B67EF2
monochromatic
#DFDC16 #ECEA46 #F2F07E #F8F6B6 #FCFCE3

Accessibility & contrast

On white

1.20
#F2F07E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.54
#F2F07E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F07E
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F07E#FFFFFF#000000##000000
##F2F07E1.001.2017.5417.54
#FFFFFF1.201.0021.0021.00
#00000017.5421.001.001.00
##00000017.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE874
Deuteranopia (green-blind)
#FFED84
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f07e;
/* rgb */ color: rgb(242, 240, 126);
/* oklch */ color: oklch(93.4% 0.137 107.9);
Tailwind
colors: {
  custom: {
    50: '#f8f4a6',
    500: '#f2f07e',
    950: '#000000',
  },
}
SCSS
$custom: #f2f07e;
$custom-light: #f8f4a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f07e",
  "rgb": {
    "r": 242,
    "g": 240,
    "b": 126
  },
  "hsl": {
    "h": 58.966,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.93362,
    "c": 0.13673,
    "h": 107.9
  },
  "luminance": 0.82704
}

Semantic roles & 50–950 ramp

primary
#F2F07E
secondary
#474ACD
accent
#0BDE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#17170F
muted
#858580

Preview Lab

Preview with #F2F07E

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

Preview Lab → · Contrast checker → · Palette generator →

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