#F5F266#F5F266

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

Color values

HEX#F5F266
RGBrgb(245, 242, 102)
HSLhsl(59, 88%, 68%)
HSVhsv(59, 58%, 96%)
CMYKcmyk(0%, 1.2%, 58.4%, 3.9%)
CIE-LABlab(93.40, -16.15, 66.19)
CIE-LCHlch(93.40, 68.13, 103.71°)
OKLaboklab(93.75% -0.0493 0.152)
OKLCHoklch(93.75% 0.16 108)
XYZxyz(71.8088, 83.8781, 24.9752)
Luminance0.8388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F266 #6669F5
analogous
#F5AA66 #F5F266 #B1F566
triadic
#F5F266 #66F5F2 #F266F5
tetradic
#F5F266 #66F5AA #6669F5 #F566B1
square
#F5F266 #66F5AA #6669F5 #F566B1
split-complementary
#F5F266 #66B1F5 #AA66F5
monochromatic
#D3CF0E #F1ED2D #F5F266 #F9F79F #FDFCD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F5F266#FFFFFF#000000##000000
##F5F2661.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)
#FFE956
Deuteranopia (green-blind)
#FFEF6E
Tritanopia (blue-blind)
#FFE4D4
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f5f266;
/* rgb */ color: rgb(245, 242, 102);
/* oklch */ color: oklch(93.8% 0.160 108.0);
Tailwind
colors: {
  custom: {
    50: '#fbf697',
    500: '#f5f266',
    950: '#000000',
  },
}
SCSS
$custom: #f5f266;
$custom-light: #fbf697;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f266",
  "rgb": {
    "r": 245,
    "g": 242,
    "b": 102
  },
  "hsl": {
    "h": 58.741,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.9375,
    "c": 0.1598,
    "h": 108
  },
  "luminance": 0.83876
}

Semantic roles & 50–950 ramp

primary
#F5F266
secondary
#3135CE
accent
#06E401
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F5F266

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

Preview Lab → · Contrast checker → · Palette generator →

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