#AF9F26#AF9F26

#AF9F26 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.6% C 0.134 H 101.4°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#AF9F26
RGBrgb(175, 159, 38)
HSLhsl(53, 64%, 42%)
HSVhsv(53, 78%, 69%)
CMYKcmyk(0%, 9.1%, 78.3%, 31.4%)
CIE-LABlab(65.00, -7.11, 60.30)
CIE-LCHlch(65.00, 60.72, 96.72°)
OKLaboklab(69.59% -0.0264 0.1313)
OKLCHoklch(69.59% 0.134 101.4)
XYZxyz(30.4287, 34.0516, 6.8032)
Luminance0.3405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F26 #2636AF
analogous
#AF5B26 #AF9F26 #7BAF26
triadic
#AF9F26 #26AF9F #9F26AF
tetradic
#AF9F26 #26AF5B #2636AF #AF267B
square
#AF9F26 #26AF5B #2636AF #AF267B
split-complementary
#AF9F26 #267BAF #5B26AF
monochromatic
#4A4410 #7D711B #AF9F26 #D5C33D #E0D370

Accessibility & contrast

On white

2.69
#AF9F26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#AF9F26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F26
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F26#FFFFFF#000000##000000
##AF9F261.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A07
Deuteranopia (green-blind)
#B3A12F
Tritanopia (blue-blind)
#BD9388
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f26;
/* rgb */ color: rgb(175, 159, 38);
/* oklch */ color: oklch(69.6% 0.134 101.4);
Tailwind
colors: {
  custom: {
    50: '#cbbb6b',
    500: '#af9f26',
    950: '#000000',
  },
}
SCSS
$custom: #af9f26;
$custom-light: #cbbb6b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f26",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 38
  },
  "hsl": {
    "h": 52.993,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.69589,
    "c": 0.13395,
    "h": 101.4
  },
  "luminance": 0.3405
}

Semantic roles & 50–950 ramp

primary
#AF9F26
secondary
#6A75C7
accent
#54E740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9F26

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

Preview Lab → · Contrast checker → · Palette generator →

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