#AF8F26#AF8F26

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

Color values

HEX#AF8F26
RGBrgb(175, 143, 38)
HSLhsl(46, 64%, 42%)
HSVhsv(46, 78%, 69%)
CMYKcmyk(0%, 18.3%, 78.3%, 31.4%)
CIE-LABlab(60.69, 1.53, 56.36)
CIE-LCHlch(60.69, 56.38, 88.44°)
OKLaboklab(66.18% -0.0019 0.1229)
OKLCHoklch(66.18% 0.123 90.9)
XYZxyz(27.8531, 28.9006, 5.9447)
Luminance0.2890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F26 #2646AF
analogous
#AF4A26 #AF8F26 #8BAF26
triadic
#AF8F26 #26AF8F #8F26AF
tetradic
#AF8F26 #26AF4A #2646AF #AF268B
square
#AF8F26 #26AF4A #2646AF #AF268B
split-complementary
#AF8F26 #268BAF #4A26AF
monochromatic
#4A3D10 #7D661B #AF8F26 #D5B23D #E0C670

Accessibility & contrast

On white

3.10
#AF8F26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#AF8F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8F26
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8F26#FFFFFF#000000##000000
##AF8F261.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D11
Deuteranopia (green-blind)
#A8962C
Tritanopia (blue-blind)
#BE827B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f26;
/* rgb */ color: rgb(175, 143, 38);
/* oklch */ color: oklch(66.2% 0.123 90.9);
Tailwind
colors: {
  custom: {
    50: '#cbaf69',
    500: '#af8f26',
    950: '#000000',
  },
}
SCSS
$custom: #af8f26;
$custom-light: #cbaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f26",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 38
  },
  "hsl": {
    "h": 45.985,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.66178,
    "c": 0.1229,
    "h": 90.9
  },
  "luminance": 0.28899
}

Semantic roles & 50–950 ramp

primary
#AF8F26
secondary
#6A80C7
accent
#67E740
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8F26

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

Preview Lab → · Contrast checker → · Palette generator →

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