#F6F271#F6F271

#F6F271 is a very light, vivid yellow. Relative luminance 0.843; OKLCH L 93.9% C 0.150 H 107.3°. Best body text is #000000 at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#F6F271
RGBrgb(246, 242, 113)
HSLhsl(58, 88%, 70%)
HSVhsv(58, 54%, 96%)
CMYKcmyk(0%, 1.6%, 54.1%, 3.5%)
CIE-LABlab(93.58, -14.96, 61.66)
CIE-LCHlch(93.58, 63.45, 103.64°)
OKLaboklab(93.95% -0.0448 0.1436)
OKLCHoklch(93.95% 0.15 107.3)
XYZxyz(72.7408, 84.2914, 28.0577)
Luminance0.8429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F6F271 #7175F6
analogous
#F6AF71 #F6F271 #B8F671
triadic
#F6F271 #71F6F2 #F271F6
tetradic
#F6F271 #71F6AF #7175F6 #F671B8
square
#F6F271 #71F6AF #7175F6 #F671B8
split-complementary
#F6F271 #71B8F6 #AF71F6
monochromatic
#DED80E #F2ED37 #F6F271 #FAF7AB #FDFCE2

Accessibility & contrast

On white

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

On black

17.86
#F6F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F6F271
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F6F271#FFFFFF#000000##000000
##F6F2711.001.1817.8617.86
#FFFFFF1.181.0021.0021.00
#00000017.8621.001.001.00
##00000017.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f6f271;
/* rgb */ color: rgb(246, 242, 113);
/* oklch */ color: oklch(93.9% 0.150 107.3);
Tailwind
colors: {
  custom: {
    50: '#fcf69e',
    500: '#f6f271',
    950: '#000000',
  },
}
SCSS
$custom: #f6f271;
$custom-light: #fcf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f6f271",
  "rgb": {
    "r": 246,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 58.195,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.93945,
    "c": 0.15043,
    "h": 107.3
  },
  "luminance": 0.84289
}

Semantic roles & 50–950 ramp

primary
#F6F271
secondary
#3B3FD0
accent
#08E501
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F6F271

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

Preview Lab → · Contrast checker → · Palette generator →

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