#F2D766#F2D766

#F2D766 is a very light, vivid yellow. Relative luminance 0.684; OKLCH L 88.0% C 0.136 H 96.0°. Best body text is #000000 at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#F2D766
RGBrgb(242, 215, 102)
HSLhsl(48, 84%, 67%)
HSVhsv(48, 58%, 95%)
CMYKcmyk(0%, 11.2%, 57.9%, 5.1%)
CIE-LABlab(86.23, -3.94, 58.11)
CIE-LCHlch(86.23, 58.24, 93.88°)
OKLaboklab(88% -0.0142 0.1348)
OKLCHoklch(88% 0.136 96)
XYZxyz(63.3192, 68.4403, 22.4428)
Luminance0.6844 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D766 #6681F2
analogous
#F29166 #F2D766 #C7F266
triadic
#F2D766 #66F2D7 #D766F2
tetradic
#F2D766 #66F291 #6681F2 #F266C7
square
#F2D766 #66F291 #6681F2 #F266C7
split-complementary
#F2D766 #66C7F2 #9166F2
monochromatic
#CCA811 #EDC82E #F2D766 #F7E69E #FCF4D7

Accessibility & contrast

On white

1.43
#F2D766 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.69
#F2D766 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D766
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D766#FFFFFF#000000##000000
##F2D7661.001.4314.6914.69
#FFFFFF1.431.0021.0021.00
#00000014.6921.001.001.00
##00000014.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD35B
Deuteranopia (green-blind)
#F1DB6B
Tritanopia (blue-blind)
#FFC9BE
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f2d766;
/* rgb */ color: rgb(242, 215, 102);
/* oklch */ color: oklch(88.0% 0.136 96.0);
Tailwind
colors: {
  custom: {
    50: '#f9e395',
    500: '#f2d766',
    950: '#000000',
  },
}
SCSS
$custom: #f2d766;
$custom-light: #f9e395;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d766",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 102
  },
  "hsl": {
    "h": 48.429,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.87995,
    "c": 0.13557,
    "h": 96
  },
  "luminance": 0.68437
}

Semantic roles & 50–950 ramp

primary
#F2D766
secondary
#3450C9
accent
#2FE105
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D766

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

Preview Lab → · Contrast checker → · Palette generator →

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