#AF8E2B#AF8E2B

#AF8E2B is a light, moderate yellow. Relative luminance 0.286; OKLCH L 66.0% C 0.119 H 89.6°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#AF8E2B
RGBrgb(175, 142, 43)
HSLhsl(45, 61%, 43%)
HSVhsv(45, 75%, 69%)
CMYKcmyk(0%, 18.9%, 75.4%, 31.4%)
CIE-LABlab(60.46, 2.29, 54.27)
CIE-LCHlch(60.46, 54.32, 87.58°)
OKLaboklab(66% 0.0008 0.1195)
OKLCHoklch(66% 0.119 89.6)
XYZxyz(27.7899, 28.6362, 6.3487)
Luminance0.2863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8E2B #2B4CAF
analogous
#AF4C2B #AF8E2B #8EAF2B
triadic
#AF8E2B #2BAF8E #8E2BAF
tetradic
#AF8E2B #2BAF4C #2B4CAF #AF2B8E
square
#AF8E2B #2BAF4C #2B4CAF #AF2B8E
split-complementary
#AF8E2B #2B8EAF #4C2BAF
monochromatic
#4D3E13 #7E661F #AF8E2B #D1AF46 #DEC477

Accessibility & contrast

On white

3.12
#AF8E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#AF8E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8E2B
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8E2B#FFFFFF#000000##000000
##AF8E2B1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C1B
Deuteranopia (green-blind)
#A79630
Tritanopia (blue-blind)
#BE827B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8e2b;
/* rgb */ color: rgb(175, 142, 43);
/* oklch */ color: oklch(66.0% 0.119 89.6);
Tailwind
colors: {
  custom: {
    50: '#cbae6b',
    500: '#af8e2b',
    950: '#000000',
  },
}
SCSS
$custom: #af8e2b;
$custom-light: #cbae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#af8e2b",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 45,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.66003,
    "c": 0.11949,
    "h": 89.6
  },
  "luminance": 0.28634
}

Semantic roles & 50–950 ramp

primary
#AF8E2B
secondary
#7086C5
accent
#6CE444
background
#FDFAF6
surface
#FAF4EC
border
#D3CEC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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