#F2D958#F2D958

#F2D958 is a very light, vivid yellow. Relative luminance 0.692; OKLCH L 88.3% C 0.148 H 98.3°. Best body text is #000000 at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#F2D958
RGBrgb(242, 217, 88)
HSLhsl(50, 86%, 65%)
HSVhsv(50, 64%, 95%)
CMYKcmyk(0%, 10.3%, 63.6%, 5.1%)
CIE-LABlab(86.61, -5.88, 64.64)
CIE-LCHlch(86.61, 64.91, 95.19°)
OKLaboklab(88.26% -0.0214 0.1469)
OKLCHoklch(88.26% 0.148 98.3)
XYZxyz(63.1950, 69.2104, 19.2609)
Luminance0.6921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D958 #5871F2
analogous
#F28C58 #F2D958 #BEF258
triadic
#F2D958 #58F2D9 #D958F2
tetradic
#F2D958 #58F28C #5871F2 #F258BE
square
#F2D958 #58F28C #5871F2 #F258BE
split-complementary
#F2D958 #58BEF2 #8C58F2
monochromatic
#C1A40F #EECC1F #F2D958 #F6E691 #FBF3CA

Accessibility & contrast

On white

1.41
#F2D958 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.84
#F2D958 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D958
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D958#FFFFFF#000000##000000
##F2D9581.001.4114.8414.84
#FFFFFF1.411.0021.0021.00
#00000014.8421.001.001.00
##00000014.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD449
Deuteranopia (green-blind)
#F4DD5F
Tritanopia (blue-blind)
#FFCABE
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d958;
/* rgb */ color: rgb(242, 217, 88);
/* oklch */ color: oklch(88.3% 0.148 98.3);
Tailwind
colors: {
  custom: {
    50: '#fae48d',
    500: '#f2d958',
    950: '#000000',
  },
}
SCSS
$custom: #f2d958;
$custom-light: #fae48d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d958",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 88
  },
  "hsl": {
    "h": 50.26,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.88257,
    "c": 0.14845,
    "h": 98.3
  },
  "luminance": 0.69208
}

Semantic roles & 50–950 ramp

primary
#F2D958
secondary
#3047BE
accent
#28E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D958

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

Preview Lab → · Contrast checker → · Palette generator →

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