#FBF270#FBF270

#FBF270 is a very light, vivid yellow. Relative luminance 0.852; OKLCH L 94.3% C 0.151 H 105.3°. Best body text is #000000 at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#FBF270
RGBrgb(251, 242, 112)
HSLhsl(56, 95%, 71%)
HSVhsv(56, 55%, 98%)
CMYKcmyk(0%, 3.6%, 55.4%, 1.6%)
CIE-LABlab(93.96, -13.05, 62.64)
CIE-LCHlch(93.96, 63.99, 101.77°)
OKLaboklab(94.35% -0.0398 0.1455)
OKLCHoklch(94.35% 0.151 105.3)
XYZxyz(74.4627, 85.1857, 27.8462)
Luminance0.8518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF270 #7079FB
analogous
#FBAC70 #FBF270 #BEFB70
triadic
#FBF270 #70FBF2 #F270FB
tetradic
#FBF270 #70FBAC #7079FB #FB70BE
square
#FBF270 #70FBAC #7079FB #FB70BE
split-complementary
#FBF270 #70BEFB #AC70FB
monochromatic
#EADB07 #F9ED34 #FBF270 #FDF7AC #FEFCE1

Accessibility & contrast

On white

1.16
#FBF270 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.04
#FBF270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF270
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF270#FFFFFF#000000##000000
##FBF2701.001.1618.0418.04
#FFFFFF1.161.0021.0021.00
#00000018.0421.001.001.00
##00000018.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fbf270;
/* rgb */ color: rgb(251, 242, 112);
/* oklch */ color: oklch(94.3% 0.151 105.3);
Tailwind
colors: {
  custom: {
    50: '#fff69d',
    500: '#fbf270',
    950: '#000000',
  },
}
SCSS
$custom: #fbf270;
$custom-light: #fff69d;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf270",
  "rgb": {
    "r": 251,
    "g": 242,
    "b": 112
  },
  "hsl": {
    "h": 56.115,
    "s": 94.558,
    "l": 71.176
  },
  "oklch": {
    "l": 0.94345,
    "c": 0.15083,
    "h": 105.3
  },
  "luminance": 0.85183
}

Semantic roles & 50–950 ramp

primary
#FBF270
secondary
#3943D7
accent
#0FE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FBF270

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

Preview Lab → · Contrast checker → · Palette generator →

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