#F7F266#F7F266

#F7F266 is a very light, vivid yellow. Relative luminance 0.842; OKLCH L 93.9% C 0.160 H 107.2°. Best body text is #000000 at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#F7F266
RGBrgb(247, 242, 102)
HSLhsl(58, 90%, 68%)
HSVhsv(58, 59%, 97%)
CMYKcmyk(0%, 2%, 58.7%, 3.1%)
CIE-LABlab(93.55, -15.35, 66.41)
CIE-LCHlch(93.55, 68.16, 103.02°)
OKLaboklab(93.91% -0.0471 0.1524)
OKLCHoklch(93.91% 0.16 107.2)
XYZxyz(72.5105, 84.2399, 25.0081)
Luminance0.8424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F266 #666BF7
analogous
#F7A966 #F7F266 #B3F766
triadic
#F7F266 #66F7F2 #F266F7
tetradic
#F7F266 #66F7A9 #666BF7 #F766B3
square
#F7F266 #66F7A9 #666BF7 #F766B3
split-complementary
#F7F266 #66B3F7 #A966F7
monochromatic
#D7D00B #F4ED2C #F7F266 #FAF7A0 #FDFCDA

Accessibility & contrast

On white

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

On black

17.85
#F7F266 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F266
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F266#FFFFFF#000000##000000
##F7F2661.001.1817.8517.85
#FFFFFF1.181.0021.0021.00
#00000017.8521.001.001.00
##00000017.8521.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: #f7f266;
/* rgb */ color: rgb(247, 242, 102);
/* oklch */ color: oklch(93.9% 0.160 107.2);
Tailwind
colors: {
  custom: {
    50: '#fdf697',
    500: '#f7f266',
    950: '#000000',
  },
}
SCSS
$custom: #f7f266;
$custom-light: #fdf697;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f266",
  "rgb": {
    "r": 247,
    "g": 242,
    "b": 102
  },
  "hsl": {
    "h": 57.931,
    "s": 90.062,
    "l": 68.431
  },
  "oklch": {
    "l": 0.93914,
    "c": 0.15955,
    "h": 107.2
  },
  "luminance": 0.84238
}

Semantic roles & 50–950 ramp

primary
#F7F266
secondary
#3136D0
accent
#08E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F7F266

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

Preview Lab → · Contrast checker → · Palette generator →

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