#FBD138#FBD138

#FBD138 is a very light, vivid yellow. Relative luminance 0.664; OKLCH L 87.3% C 0.164 H 92.5°. Best body text is #000000 at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#FBD138
RGBrgb(251, 209, 56)
HSLhsl(47, 96%, 60%)
HSVhsv(47, 78%, 98%)
CMYKcmyk(0%, 16.7%, 77.7%, 1.6%)
CIE-LABlab(85.20, 0.44, 75.44)
CIE-LCHlch(85.20, 75.44, 89.67°)
OKLaboklab(87.27% -0.0072 0.1639)
OKLCHoklch(87.27% 0.164 92.5)
XYZxyz(63.3016, 66.3996, 13.2229)
Luminance0.6640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBD138 #3862FB
analogous
#FB7038 #FBD138 #C3FB38
triadic
#FBD138 #38FBD1 #D138FB
tetradic
#FBD138 #38FB70 #3862FB #FB38C3
square
#FBD138 #38FB70 #3862FB #FB38C3
split-complementary
#FBD138 #38C3FB #7038FB
monochromatic
#B58F04 #F1BE05 #FBD138 #FCDF74 #FDEDB0

Accessibility & contrast

On white

1.47
#FBD138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.28
#FBD138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBD138
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBD138#FFFFFF#000000##000000
##FBD1381.001.4714.2814.28
#FFFFFF1.471.0021.0021.00
#00000014.2821.001.001.00
##00000014.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE14
Deuteranopia (green-blind)
#F3DA42
Tritanopia (blue-blind)
#FFBFB4
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #fbd138;
/* rgb */ color: rgb(251, 209, 56);
/* oklch */ color: oklch(87.3% 0.164 92.5);
Tailwind
colors: {
  custom: {
    50: '#ffde7b',
    500: '#fbd138',
    950: '#000000',
  },
}
SCSS
$custom: #fbd138;
$custom-light: #ffde7b;
$custom-dark: #000000;
JSON
{
  "hex": "#fbd138",
  "rgb": {
    "r": 251,
    "g": 209,
    "b": 56
  },
  "hsl": {
    "h": 47.077,
    "s": 96.059,
    "l": 60.196
  },
  "oklch": {
    "l": 0.87268,
    "c": 0.16402,
    "h": 92.5
  },
  "luminance": 0.66396
}

Semantic roles & 50–950 ramp

primary
#FBD138
secondary
#2342B4
accent
#31E600
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#19150A
muted
#87847D

Preview Lab

Preview with #FBD138

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

Preview Lab → · Contrast checker → · Palette generator →

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