#F7F256#F7F256

#F7F256 is a very light, vivid yellow. Relative luminance 0.840; OKLCH L 93.8% C 0.171 H 107.5°. Best body text is #000000 at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#F7F256
RGBrgb(247, 242, 86)
HSLhsl(58, 91%, 65%)
HSVhsv(58, 65%, 97%)
CMYKcmyk(0%, 2%, 65.2%, 3.1%)
CIE-LABlab(93.43, -16.33, 72.71)
CIE-LCHlch(93.43, 74.52, 102.66°)
OKLaboklab(93.77% -0.0516 0.1635)
OKLCHoklch(93.77% 0.171 107.5)
XYZxyz(71.7922, 83.9526, 21.2250)
Luminance0.8395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F256 #565BF7
analogous
#F7A256 #F7F256 #ABF756
triadic
#F7F256 #56F7F2 #F256F7
tetradic
#F7F256 #56F7A2 #565BF7 #F756AB
square
#F7F256 #56F7A2 #565BF7 #F756AB
split-complementary
#F7F256 #56ABF7 #A256F7
monochromatic
#C9C30A #F4EE1C #F7F256 #FAF690 #FDFBCB

Accessibility & contrast

On white

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

On black

17.79
#F7F256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F256
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F256#FFFFFF#000000##000000
##F7F2561.001.1817.7917.79
#FFFFFF1.181.0021.0021.00
#00000017.7921.001.001.00
##00000017.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE940
Deuteranopia (green-blind)
#FFEF60
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f7f256;
/* rgb */ color: rgb(247, 242, 86);
/* oklch */ color: oklch(93.8% 0.171 107.5);
Tailwind
colors: {
  custom: {
    50: '#fdf68d',
    500: '#f7f256',
    950: '#000000',
  },
}
SCSS
$custom: #f7f256;
$custom-light: #fdf68d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f256",
  "rgb": {
    "r": 247,
    "g": 242,
    "b": 86
  },
  "hsl": {
    "h": 58.137,
    "s": 90.96,
    "l": 65.294
  },
  "oklch": {
    "l": 0.93774,
    "c": 0.17146,
    "h": 107.5
  },
  "luminance": 0.8395
}

Semantic roles & 50–950 ramp

primary
#F7F256
secondary
#2C31C5
accent
#07E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F7F256

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

Preview Lab → · Contrast checker → · Palette generator →

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