#F7F255#F7F255

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

Color values

HEX#F7F255
RGBrgb(247, 242, 85)
HSLhsl(58, 91%, 65%)
HSVhsv(58, 66%, 97%)
CMYKcmyk(0%, 2%, 65.6%, 3.1%)
CIE-LABlab(93.42, -16.38, 73.08)
CIE-LCHlch(93.42, 74.89, 102.63°)
OKLaboklab(93.77% -0.0518 0.1642)
OKLCHoklch(93.77% 0.172 107.5)
XYZxyz(71.7522, 83.9366, 21.0143)
Luminance0.8393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F255 #555AF7
analogous
#F7A155 #F7F255 #ABF755
triadic
#F7F255 #55F7F2 #F255F7
tetradic
#F7F255 #55F7A1 #555AF7 #F755AB
square
#F7F255 #55F7A1 #555AF7 #F755AB
split-complementary
#F7F255 #55ABF7 #A155F7
monochromatic
#C8C209 #F4EE1B #F7F255 #FAF68F #FDFBCA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F7F255#FFFFFF#000000##000000
##F7F2551.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)
#FFE93F
Deuteranopia (green-blind)
#FFEF5F
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f7f255;
/* rgb */ color: rgb(247, 242, 85);
/* oklch */ color: oklch(93.8% 0.172 107.5);
Tailwind
colors: {
  custom: {
    50: '#fdf68d',
    500: '#f7f255',
    950: '#000000',
  },
}
SCSS
$custom: #f7f255;
$custom-light: #fdf68d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f255",
  "rgb": {
    "r": 247,
    "g": 242,
    "b": 85
  },
  "hsl": {
    "h": 58.148,
    "s": 91.011,
    "l": 65.098
  },
  "oklch": {
    "l": 0.93766,
    "c": 0.17213,
    "h": 107.5
  },
  "luminance": 0.83934
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F7F255

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

Preview Lab → · Contrast checker → · Palette generator →

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