#AF9E26#AF9E26

#AF9E26 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.4% C 0.133 H 100.8°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#AF9E26
RGBrgb(175, 158, 38)
HSLhsl(53, 64%, 42%)
HSVhsv(53, 78%, 69%)
CMYKcmyk(0%, 9.7%, 78.3%, 31.4%)
CIE-LABlab(64.73, -6.58, 60.05)
CIE-LCHlch(64.73, 60.41, 96.25°)
OKLaboklab(69.37% -0.0249 0.1308)
OKLCHoklch(69.37% 0.133 100.8)
XYZxyz(30.2574, 33.7091, 6.7461)
Luminance0.3371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E26 #2637AF
analogous
#AF5A26 #AF9E26 #7CAF26
triadic
#AF9E26 #26AF9E #9E26AF
tetradic
#AF9E26 #26AF5A #2637AF #AF267C
square
#AF9E26 #26AF5A #2637AF #AF267C
split-complementary
#AF9E26 #267CAF #5A26AF
monochromatic
#4A4310 #7D711B #AF9E26 #D5C23D #E0D270

Accessibility & contrast

On white

2.71
#AF9E26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#AF9E26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E26
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E26#FFFFFF#000000##000000
##AF9E261.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9907
Deuteranopia (green-blind)
#B2A02F
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e26;
/* rgb */ color: rgb(175, 158, 38);
/* oklch */ color: oklch(69.4% 0.133 100.8);
Tailwind
colors: {
  custom: {
    50: '#cbba6b',
    500: '#af9e26',
    950: '#000000',
  },
}
SCSS
$custom: #af9e26;
$custom-light: #cbba6b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e26",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 38
  },
  "hsl": {
    "h": 52.555,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.69373,
    "c": 0.13314,
    "h": 100.8
  },
  "luminance": 0.33708
}

Semantic roles & 50–950 ramp

primary
#AF9E26
secondary
#6A76C7
accent
#55E740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9E26

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

Preview Lab → · Contrast checker → · Palette generator →

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