#AF8F2B#AF8F2B

#AF8F2B is a light, vivid yellow. Relative luminance 0.289; OKLCH L 66.2% C 0.120 H 90.3°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#AF8F2B
RGBrgb(175, 143, 43)
HSLhsl(45, 61%, 43%)
HSVhsv(45, 75%, 69%)
CMYKcmyk(0%, 18.3%, 75.4%, 31.4%)
CIE-LABlab(60.72, 1.74, 54.53)
CIE-LCHlch(60.72, 54.55, 88.17°)
OKLaboklab(66.21% -0.0007 0.12)
OKLCHoklch(66.21% 0.12 90.3)
XYZxyz(27.9393, 28.9351, 6.3985)
Luminance0.2893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F2B #2B4BAF
analogous
#AF4D2B #AF8F2B #8DAF2B
triadic
#AF8F2B #2BAF8F #8F2BAF
tetradic
#AF8F2B #2BAF4D #2B4BAF #AF2B8D
square
#AF8F2B #2BAF4D #2B4BAF #AF2B8D
split-complementary
#AF8F2B #2B8DAF #4D2BAF
monochromatic
#4D3F13 #7E671F #AF8F2B #D1B046 #DEC577

Accessibility & contrast

On white

3.09
#AF8F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#AF8F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8F2B
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8F2B#FFFFFF#000000##000000
##AF8F2B1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D1A
Deuteranopia (green-blind)
#A79631
Tritanopia (blue-blind)
#BE837B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f2b;
/* rgb */ color: rgb(175, 143, 43);
/* oklch */ color: oklch(66.2% 0.120 90.3);
Tailwind
colors: {
  custom: {
    50: '#cbaf6c',
    500: '#af8f2b',
    950: '#000000',
  },
}
SCSS
$custom: #af8f2b;
$custom-light: #cbaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f2b",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 45.455,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.66212,
    "c": 0.12003,
    "h": 90.3
  },
  "luminance": 0.28933
}

Semantic roles & 50–950 ramp

primary
#AF8F2B
secondary
#7085C5
accent
#6BE444
background
#FDFAF6
surface
#FAF4EC
border
#D3CEC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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