#FED228#FED228

#FED228 is a very light, vivid yellow. Relative luminance 0.673; OKLCH L 87.7% C 0.172 H 92.6°. Best body text is #000000 at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#FED228
RGBrgb(254, 210, 40)
HSLhsl(48, 99%, 58%)
HSVhsv(48, 84%, 100%)
CMYKcmyk(0%, 17.3%, 84.3%, 0.4%)
CIE-LABlab(85.67, 0.73, 80.44)
CIE-LCHlch(85.67, 80.44, 89.48°)
OKLaboklab(87.68% -0.0078 0.1714)
OKLCHoklch(87.68% 0.172 92.6)
XYZxyz(64.3066, 67.3213, 11.6143)
Luminance0.6732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FED228 #2854FE
analogous
#FE6728 #FED228 #BFFE28
triadic
#FED228 #28FED2 #D228FE
tetradic
#FED228 #28FE67 #2854FE #FE28BF
square
#FED228 #28FE67 #2854FE #FE28BF
split-complementary
#FED228 #28BFFE #6728FE
monochromatic
#AB8801 #E8B801 #FED228 #FEDF65 #FFECA2

Accessibility & contrast

On white

1.45
#FED228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.46
#FED228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FED228
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FED228#FFFFFF#000000##000000
##FED2281.001.4514.4614.46
#FFFFFF1.451.0021.0021.00
#00000014.4621.001.001.00
##00000014.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EACF00
Deuteranopia (green-blind)
#F5DB36
Tritanopia (blue-blind)
#FFC0B4
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #fed228;
/* rgb */ color: rgb(254, 210, 40);
/* oklch */ color: oklch(87.7% 0.172 92.6);
Tailwind
colors: {
  custom: {
    50: '#ffdf74',
    500: '#fed228',
    950: '#000000',
  },
}
SCSS
$custom: #fed228;
$custom-light: #ffdf74;
$custom-dark: #000000;
JSON
{
  "hex": "#fed228",
  "rgb": {
    "r": 254,
    "g": 210,
    "b": 40
  },
  "hsl": {
    "h": 47.664,
    "s": 99.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.8768,
    "c": 0.1716,
    "h": 92.6
  },
  "luminance": 0.67317
}

Semantic roles & 50–950 ramp

primary
#FED228
secondary
#1F3CAB
accent
#55FF29
background
#FFFEFB
surface
#FFFCF1
border
#D7D5CB
text
#191509
muted
#87847D

Preview Lab

Preview with #FED228

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

Preview Lab → · Contrast checker → · Palette generator →

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