#FF9840#FF9840

#FF9840 is a light, vivid orange. Relative luminance 0.441; OKLCH L 77.3% C 0.158 H 57.3°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#FF9840
RGBrgb(255, 152, 64)
HSLhsl(28, 100%, 63%)
HSVhsv(28, 75%, 100%)
CMYKcmyk(0%, 40.4%, 74.9%, 0%)
CIE-LABlab(72.29, 32.01, 60.37)
CIE-LCHlch(72.29, 68.33, 62.07°)
OKLaboklab(77.3% 0.0854 0.133)
OKLCHoklch(77.3% 0.158 57.3)
XYZxyz(53.3982, 44.0923, 10.5480)
Luminance0.4409 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF9840 #40A7FF
analogous
#FF4047 #FF9840 #FFF840
triadic
#FF9840 #40FF98 #9840FF
tetradic
#FF9840 #47FF40 #40A7FF #F840FF
square
#FF9840 #47FF40 #40A7FF #F840FF
split-complementary
#FF9840 #40FFF8 #4047FF
monochromatic
#C55B00 #FF7703 #FF9840 #FFB97D #FFDABA

Accessibility & contrast

On white

2.14
#FF9840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.82
#FF9840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF9840
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF9840#FFFFFF#000000##000000
##FF98401.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A334
Deuteranopia (green-blind)
#CFBA40
Tritanopia (blue-blind)
#FF8286
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ff9840;
/* rgb */ color: rgb(255, 152, 64);
/* oklch */ color: oklch(77.3% 0.158 57.3);
Tailwind
colors: {
  custom: {
    50: '#ffb77a',
    500: '#ff9840',
    950: '#000000',
  },
}
SCSS
$custom: #ff9840;
$custom-light: #ffb77a;
$custom-dark: #000000;
JSON
{
  "hex": "#ff9840",
  "rgb": {
    "r": 255,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 27.644,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.77296,
    "c": 0.15809,
    "h": 57.3
  },
  "luminance": 0.44087
}

Semantic roles & 50–950 ramp

primary
#FF9840
secondary
#ABD0F0
accent
#7CE600
background
#FFFBF7
surface
#FFF6EE
border
#D7D0C9
text
#1A1109
muted
#87807B

Preview Lab

Preview with #FF9840

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

Preview Lab → · Contrast checker → · Palette generator →

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