#F2F255#F2F255

#F2F255 is a very light, vivid yellow. Relative luminance 0.830; OKLCH L 93.4% C 0.173 H 109.3°. Best body text is #000000 at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#F2F255
RGBrgb(242, 242, 85)
HSLhsl(60, 86%, 64%)
HSVhsv(60, 65%, 95%)
CMYKcmyk(0%, 0%, 64.9%, 5.1%)
CIE-LABlab(93.03, -18.40, 72.56)
CIE-LCHlch(93.03, 74.85, 104.23°)
OKLaboklab(93.36% -0.0572 0.1632)
OKLCHoklch(93.36% 0.173 109.3)
XYZxyz(70.0121, 83.0394, 20.9328)
Luminance0.8304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F255 #5555F2
analogous
#F2A455 #F2F255 #A4F255
triadic
#F2F255 #55F2F2 #F255F2
tetradic
#F2F255 #55F2A4 #5555F2 #F255A4
square
#F2F255 #55F2A4 #5555F2 #F255A4
split-complementary
#F2F255 #55A4F2 #A455F2
monochromatic
#BEBE0F #EEEE1C #F2F255 #F6F68E #FBFBC7

Accessibility & contrast

On white

1.19
#F2F255 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.61
#F2F255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F255
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F255#FFFFFF#000000##000000
##F2F2551.001.1917.6117.61
#FFFFFF1.191.0021.0021.00
#00000017.6121.001.001.00
##00000017.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE83F
Deuteranopia (green-blind)
#FFED5F
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f255;
/* rgb */ color: rgb(242, 242, 85);
/* oklch */ color: oklch(93.4% 0.173 109.3);
Tailwind
colors: {
  custom: {
    50: '#faf68d',
    500: '#f2f255',
    950: '#000000',
  },
}
SCSS
$custom: #f2f255;
$custom-light: #faf68d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f255",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 85
  },
  "hsl": {
    "h": 60,
    "s": 85.792,
    "l": 64.118
  },
  "oklch": {
    "l": 0.93359,
    "c": 0.17293,
    "h": 109.3
  },
  "luminance": 0.83037
}

Semantic roles & 50–950 ramp

primary
#F2F255
secondary
#2F2FBC
accent
#03E203
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F2F255

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

Preview Lab → · Contrast checker → · Palette generator →

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