#FFB940#FFB940

#FFB940 is a very light, vivid orange. Relative luminance 0.563; OKLCH L 83.1% C 0.153 H 76.8°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#FFB940
RGBrgb(255, 185, 64)
HSLhsl(38, 100%, 63%)
HSVhsv(38, 75%, 100%)
CMYKcmyk(0%, 27.5%, 74.9%, 0%)
CIE-LABlab(79.80, 14.82, 67.75)
CIE-LCHlch(79.80, 69.35, 77.66°)
OKLaboklab(83.13% 0.0348 0.1488)
OKLCHoklch(83.13% 0.153 76.8)
XYZxyz(59.5185, 56.3329, 12.5881)
Luminance0.5633 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFB940 #4086FF
analogous
#FF5940 #FFB940 #E6FF40
triadic
#FFB940 #40FFB9 #B940FF
tetradic
#FFB940 #40FF59 #4086FF #FF40E6
square
#FFB940 #40FF59 #4086FF #FF40E6
split-complementary
#FFB940 #40E6FF #5940FF
monochromatic
#C57D00 #FFA303 #FFB940 #FFCF7D #FFE6BA

Accessibility & contrast

On white

1.71
#FFB940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#FFB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFB940
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFB940#FFFFFF#000000##000000
##FFB9401.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2D
Deuteranopia (green-blind)
#E4CD45
Tritanopia (blue-blind)
#FFA6A1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #ffb940;
/* rgb */ color: rgb(255, 185, 64);
/* oklch */ color: oklch(83.1% 0.153 76.8);
Tailwind
colors: {
  custom: {
    50: '#ffcd7d',
    500: '#ffb940',
    950: '#000000',
  },
}
SCSS
$custom: #ffb940;
$custom-light: #ffcd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#ffb940",
  "rgb": {
    "r": 255,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 38.01,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.83133,
    "c": 0.15283,
    "h": 76.8
  },
  "luminance": 0.56328
}

Semantic roles & 50–950 ramp

primary
#FFB940
secondary
#225CC1
accent
#54E600
background
#FFFEFB
surface
#FFFAF2
border
#D7D3CC
text
#19130A
muted
#87837D

Preview Lab

Preview with #FFB940

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

Preview Lab → · Contrast checker → · Palette generator →

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