#F2F07B#F2F07B

#F2F07B is a very light, vivid yellow. Relative luminance 0.826; OKLCH L 93.3% C 0.140 H 107.9°. Best body text is #000000 at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#F2F07B
RGBrgb(242, 240, 123)
HSLhsl(59, 82%, 72%)
HSVhsv(59, 49%, 95%)
CMYKcmyk(0%, 0.8%, 49.2%, 5.1%)
CIE-LABlab(92.85, -14.76, 56.21)
CIE-LCHlch(92.85, 58.12, 104.71°)
OKLaboklab(93.33% -0.043 0.1328)
OKLCHoklch(93.33% 0.14 107.9)
XYZxyz(71.3549, 82.6293, 30.9253)
Luminance0.8263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F07B #7B7DF2
analogous
#F2B57B #F2F07B #B9F27B
triadic
#F2F07B #7BF2F0 #F07BF2
tetradic
#F2F07B #7BF2B5 #7B7DF2 #F27BB9
square
#F2F07B #7BF2B5 #7B7DF2 #F27BB9
split-complementary
#F2F07B #7BB9F2 #B57BF2
monochromatic
#DDDA16 #EDEA43 #F2F07B #F7F6B3 #FCFCE3

Accessibility & contrast

On white

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

On black

17.53
#F2F07B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F07B
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F07B#FFFFFF#000000##000000
##F2F07B1.001.2017.5317.53
#FFFFFF1.201.0021.0021.00
#00000017.5321.001.001.00
##00000017.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE870
Deuteranopia (green-blind)
#FFED81
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f2f07b;
/* rgb */ color: rgb(242, 240, 123);
/* oklch */ color: oklch(93.3% 0.140 107.9);
Tailwind
colors: {
  custom: {
    50: '#f8f4a4',
    500: '#f2f07b',
    950: '#000000',
  },
}
SCSS
$custom: #f2f07b;
$custom-light: #f8f4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f07b",
  "rgb": {
    "r": 242,
    "g": 240,
    "b": 123
  },
  "hsl": {
    "h": 58.992,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.93325,
    "c": 0.13962,
    "h": 107.9
  },
  "luminance": 0.82627
}

Semantic roles & 50–950 ramp

primary
#F2F07B
secondary
#4547CD
accent
#0BDE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F07B

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

Preview Lab → · Contrast checker → · Palette generator →

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