#F2D255#F2D255

#F2D255 is a very light, vivid yellow. Relative luminance 0.656; OKLCH L 86.8% C 0.146 H 94.7°. Best body text is #000000 at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#F2D255
RGBrgb(242, 210, 85)
HSLhsl(48, 86%, 64%)
HSVhsv(48, 65%, 95%)
CMYKcmyk(0%, 13.2%, 64.9%, 5.1%)
CIE-LABlab(84.81, -2.50, 63.98)
CIE-LCHlch(84.81, 64.03, 92.24°)
OKLaboklab(86.82% -0.012 0.1451)
OKLCHoklch(86.82% 0.146 94.7)
XYZxyz(61.3071, 65.6295, 18.0311)
Luminance0.6563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D255 #5575F2
analogous
#F28455 #F2D255 #C3F255
triadic
#F2D255 #55F2D2 #D255F2
tetradic
#F2D255 #55F284 #5575F2 #F255C3
square
#F2D255 #55F284 #5575F2 #F255C3
split-complementary
#F2D255 #55C3F2 #8455F2
monochromatic
#BE9A0F #EEC31C #F2D255 #F6E18E #FBF0C7

Accessibility & contrast

On white

1.49
#F2D255 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.13
#F2D255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D255
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D255#FFFFFF#000000##000000
##F2D2551.001.4914.1314.13
#FFFFFF1.491.0021.0021.00
#00000014.1321.001.001.00
##00000014.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE46
Deuteranopia (green-blind)
#EFD85B
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d255;
/* rgb */ color: rgb(242, 210, 85);
/* oklch */ color: oklch(86.8% 0.146 94.7);
Tailwind
colors: {
  custom: {
    50: '#fadf8a',
    500: '#f2d255',
    950: '#000000',
  },
}
SCSS
$custom: #f2d255;
$custom-light: #fadf8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d255",
  "rgb": {
    "r": 242,
    "g": 210,
    "b": 85
  },
  "hsl": {
    "h": 47.771,
    "s": 85.792,
    "l": 64.118
  },
  "oklch": {
    "l": 0.86824,
    "c": 0.14555,
    "h": 94.7
  },
  "luminance": 0.65626
}

Semantic roles & 50–950 ramp

primary
#F2D255
secondary
#2F4CBC
accent
#31E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D255

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

Preview Lab → · Contrast checker → · Palette generator →

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