#F2F045#F2F045

#F2F045 is a very light, vivid yellow. Relative luminance 0.816; OKLCH L 92.8% C 0.181 H 108.8°. Best body text is #000000 at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#F2F045
RGBrgb(242, 240, 69)
HSLhsl(59, 87%, 61%)
HSVhsv(59, 71%, 95%)
CMYKcmyk(0%, 0.8%, 71.5%, 5.1%)
CIE-LABlab(92.41, -18.23, 77.64)
CIE-LCHlch(92.41, 79.76, 103.21°)
OKLaboklab(92.83% -0.0583 0.1713)
OKLCHoklch(92.83% 0.181 108.8)
XYZxyz(68.8548, 81.6293, 17.7581)
Luminance0.8163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F045 #4547F2
analogous
#F29945 #F2F045 #9EF245
triadic
#F2F045 #45F2F0 #F045F2
tetradic
#F2F045 #45F299 #4547F2 #F2459E
square
#F2F045 #45F299 #4547F2 #F2459E
split-complementary
#F2F045 #459EF2 #9945F2
monochromatic
#B0AE0C #E9E710 #F2F045 #F6F57E #FAF9B7

Accessibility & contrast

On white

1.21
#F2F045 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.33
#F2F045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F045
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F045#FFFFFF#000000##000000
##F2F0451.001.2117.3317.33
#FFFFFF1.211.0021.0021.00
#00000017.3321.001.001.00
##00000017.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE624
Deuteranopia (green-blind)
#FFEC52
Tritanopia (blue-blind)
#FFE1CF
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2f045;
/* rgb */ color: rgb(242, 240, 69);
/* oklch */ color: oklch(92.8% 0.181 108.8);
Tailwind
colors: {
  custom: {
    50: '#faf484',
    500: '#f2f045',
    950: '#000000',
  },
}
SCSS
$custom: #f2f045;
$custom-light: #faf484;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f045",
  "rgb": {
    "r": 242,
    "g": 240,
    "b": 69
  },
  "hsl": {
    "h": 59.306,
    "s": 86.935,
    "l": 60.98
  },
  "oklch": {
    "l": 0.92832,
    "c": 0.18095,
    "h": 108.8
  },
  "luminance": 0.81627
}

Semantic roles & 50–950 ramp

primary
#F2F045
secondary
#2B2CB0
accent
#05E302
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170C
muted
#86857F

Preview Lab

Preview with #F2F045

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

Preview Lab → · Contrast checker → · Palette generator →

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