#F7F156#F7F156

#F7F156 is a very light, vivid yellow. Relative luminance 0.834; OKLCH L 93.6% C 0.171 H 107.1°. Best body text is #000000 at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#F7F156
RGBrgb(247, 241, 86)
HSLhsl(58, 91%, 65%)
HSVhsv(58, 65%, 97%)
CMYKcmyk(0%, 2.4%, 65.2%, 3.1%)
CIE-LABlab(93.17, -15.84, 72.44)
CIE-LCHlch(93.17, 74.15, 102.33°)
OKLaboklab(93.57% -0.0502 0.163)
OKLCHoklch(93.57% 0.171 107.1)
XYZxyz(71.4953, 83.3590, 21.1261)
Luminance0.8336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F156 #565CF7
analogous
#F7A056 #F7F156 #ACF756
triadic
#F7F156 #56F7F1 #F156F7
tetradic
#F7F156 #56F7A0 #565CF7 #F756AC
square
#F7F156 #56F7A0 #565CF7 #F756AC
split-complementary
#F7F156 #56ACF7 #A056F7
monochromatic
#C9C20A #F4EC1C #F7F156 #FAF690 #FDFBCB

Accessibility & contrast

On white

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

On black

17.67
#F7F156 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F156
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F156#FFFFFF#000000##000000
##F7F1561.001.1917.6717.67
#FFFFFF1.191.0021.0021.00
#00000017.6721.001.001.00
##00000017.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE840
Deuteranopia (green-blind)
#FFEE60
Tritanopia (blue-blind)
#FFE2D1
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f7f156;
/* rgb */ color: rgb(247, 241, 86);
/* oklch */ color: oklch(93.6% 0.171 107.1);
Tailwind
colors: {
  custom: {
    50: '#fdf58d',
    500: '#f7f156',
    950: '#000000',
  },
}
SCSS
$custom: #f7f156;
$custom-light: #fdf58d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f156",
  "rgb": {
    "r": 247,
    "g": 241,
    "b": 86
  },
  "hsl": {
    "h": 57.764,
    "s": 90.96,
    "l": 65.294
  },
  "oklch": {
    "l": 0.93568,
    "c": 0.17051,
    "h": 107.1
  },
  "luminance": 0.83357
}

Semantic roles & 50–950 ramp

primary
#F7F156
secondary
#2C32C5
accent
#09E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F7F156

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

Preview Lab → · Contrast checker → · Palette generator →

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