#FFAF40#FFAF40

#FFAF40 is a light, vivid orange. Relative luminance 0.523; OKLCH L 81.3% C 0.152 H 70.8°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#FFAF40
RGBrgb(255, 175, 64)
HSLhsl(35, 100%, 63%)
HSVhsv(35, 75%, 100%)
CMYKcmyk(0%, 31.4%, 74.9%, 0%)
CIE-LABlab(77.46, 20.04, 65.47)
CIE-LCHlch(77.46, 68.47, 72.98°)
OKLaboklab(81.3% 0.05 0.144)
OKLCHoklch(81.3% 0.152 70.8)
XYZxyz(57.4997, 52.2952, 11.9152)
Luminance0.5229 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFAF40 #4090FF
analogous
#FF4F40 #FFAF40 #F0FF40
triadic
#FFAF40 #40FFAF #AF40FF
tetradic
#FFAF40 #40FF4F #4090FF #FF40F0
square
#FFAF40 #40FF4F #4090FF #FF40F0
split-complementary
#FFAF40 #40F0FF #4F40FF
monochromatic
#C57200 #FF9503 #FFAF40 #FFC97D #FFE2BA

Accessibility & contrast

On white

1.83
#FFAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#FFAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFAF40
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFAF40#FFFFFF#000000##000000
##FFAF401.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB430
Deuteranopia (green-blind)
#DDC743
Tritanopia (blue-blind)
#FF9B99
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ffaf40;
/* rgb */ color: rgb(255, 175, 64);
/* oklch */ color: oklch(81.3% 0.152 70.8);
Tailwind
colors: {
  custom: {
    50: '#ffc67c',
    500: '#ffaf40',
    950: '#000000',
  },
}
SCSS
$custom: #ffaf40;
$custom-light: #ffc67c;
$custom-dark: #000000;
JSON
{
  "hex": "#ffaf40",
  "rgb": {
    "r": 255,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 34.869,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.81302,
    "c": 0.1524,
    "h": 70.8
  },
  "luminance": 0.5229
}

Semantic roles & 50–950 ramp

primary
#FFAF40
secondary
#2265C1
accent
#60E600
background
#FFFDFB
surface
#FFF9F2
border
#D7D2CC
text
#19130A
muted
#87827D

Preview Lab

Preview with #FFAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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