#F0C157#F0C157

#F0C157 is a very light, vivid orange. Relative luminance 0.574; OKLCH L 83.3% C 0.134 H 85.0°. Best body text is #000000 at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#F0C157
RGBrgb(240, 193, 87)
HSLhsl(42, 84%, 64%)
HSVhsv(42, 64%, 94%)
CMYKcmyk(0%, 19.6%, 63.7%, 5.9%)
CIE-LABlab(80.38, 5.55, 58.27)
CIE-LCHlch(80.38, 58.53, 84.56°)
OKLaboklab(83.3% 0.0116 0.1333)
OKLCHoklch(83.3% 0.134 85)
XYZxyz(56.7285, 57.3569, 17.0980)
Luminance0.5735 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0C157 #5786F0
analogous
#F07557 #F0C157 #D2F057
triadic
#F0C157 #57F0C1 #C157F0
tetradic
#F0C157 #57F075 #5786F0 #F057D2
square
#F0C157 #57F075 #5786F0 #F057D2
split-complementary
#F0C157 #57D2F0 #7557F0
monochromatic
#BC8711 #EBAC1F #F0C157 #F5D68F #FAEAC7

Accessibility & contrast

On white

1.68
#F0C157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.47
#F0C157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0C157
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0C157#FFFFFF#000000##000000
##F0C1571.001.6812.4712.47
#FFFFFF1.681.0021.0021.00
#00000012.4721.001.001.00
##00000012.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C04B
Deuteranopia (green-blind)
#E2CD5B
Tritanopia (blue-blind)
#FFB1AA
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #f0c157;
/* rgb */ color: rgb(240, 193, 87);
/* oklch */ color: oklch(83.3% 0.134 85.0);
Tailwind
colors: {
  custom: {
    50: '#f9d38a',
    500: '#f0c157',
    950: '#000000',
  },
}
SCSS
$custom: #f0c157;
$custom-light: #f9d38a;
$custom-dark: #000000;
JSON
{
  "hex": "#f0c157",
  "rgb": {
    "r": 240,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 41.569,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.83295,
    "c": 0.13378,
    "h": 85
  },
  "luminance": 0.57353
}

Semantic roles & 50–950 ramp

primary
#F0C157
secondary
#315BBA
accent
#49E005
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0C157

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

Preview Lab → · Contrast checker → · Palette generator →

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