#F7F270#F7F270

#F7F270 is a very light, vivid yellow. Relative luminance 0.844; OKLCH L 94.0% C 0.151 H 106.9°. Best body text is #000000 at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#F7F270
RGBrgb(247, 242, 112)
HSLhsl(58, 89%, 70%)
HSVhsv(58, 55%, 97%)
CMYKcmyk(0%, 2%, 54.7%, 3.1%)
CIE-LABlab(93.65, -14.64, 62.20)
CIE-LCHlch(93.65, 63.90, 103.25°)
OKLaboklab(94.02% -0.0441 0.1446)
OKLCHoklch(94.02% 0.151 106.9)
XYZxyz(73.0366, 84.4504, 27.7793)
Luminance0.8445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F270 #7075F7
analogous
#F7AF70 #F7F270 #B8F770
triadic
#F7F270 #70F7F2 #F270F7
tetradic
#F7F270 #70F7AF #7075F7 #F770B8
square
#F7F270 #70F7AF #7075F7 #F770B8
split-complementary
#F7F270 #70B8F7 #AF70F7
monochromatic
#E0D80D #F4ED36 #F7F270 #FAF7AA #FDFCE2

Accessibility & contrast

On white

1.17
#F7F270 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.89
#F7F270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F270
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F270#FFFFFF#000000##000000
##F7F2701.001.1717.8917.89
#FFFFFF1.171.0021.0021.00
#00000017.8921.001.001.00
##00000017.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA63
Deuteranopia (green-blind)
#FFEF77
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f7f270;
/* rgb */ color: rgb(247, 242, 112);
/* oklch */ color: oklch(94.0% 0.151 106.9);
Tailwind
colors: {
  custom: {
    50: '#fcf69d',
    500: '#f7f270',
    950: '#000000',
  },
}
SCSS
$custom: #f7f270;
$custom-light: #fcf69d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f270",
  "rgb": {
    "r": 247,
    "g": 242,
    "b": 112
  },
  "hsl": {
    "h": 57.778,
    "s": 89.404,
    "l": 70.392
  },
  "oklch": {
    "l": 0.94016,
    "c": 0.15119,
    "h": 106.9
  },
  "luminance": 0.84448
}

Semantic roles & 50–950 ramp

primary
#F7F270
secondary
#3A3FD2
accent
#08E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F7F270

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

Preview Lab → · Contrast checker → · Palette generator →

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