#AF9726#AF9726

#AF9726 is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.9% C 0.128 H 96.4°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AF9726
RGBrgb(175, 151, 38)
HSLhsl(49, 64%, 42%)
HSVhsv(49, 78%, 69%)
CMYKcmyk(0%, 13.7%, 78.3%, 31.4%)
CIE-LABlab(62.83, -2.82, 58.32)
CIE-LCHlch(62.83, 58.39, 92.77°)
OKLaboklab(67.87% -0.0143 0.1271)
OKLCHoklch(67.87% 0.128 96.4)
XYZxyz(29.0972, 31.3887, 6.3594)
Luminance0.3139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9726 #263EAF
analogous
#AF5326 #AF9726 #83AF26
triadic
#AF9726 #26AF97 #9726AF
tetradic
#AF9726 #26AF53 #263EAF #AF2683
square
#AF9726 #26AF53 #263EAF #AF2683
split-complementary
#AF9726 #2683AF #5326AF
monochromatic
#4A4010 #7D6C1B #AF9726 #D5BA3D #E0CC70

Accessibility & contrast

On white

2.89
#AF9726 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AF9726 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9726
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9726#FFFFFF#000000##000000
##AF97261.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7940C
Deuteranopia (green-blind)
#AD9B2E
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9726;
/* rgb */ color: rgb(175, 151, 38);
/* oklch */ color: oklch(67.9% 0.128 96.4);
Tailwind
colors: {
  custom: {
    50: '#cbb56a',
    500: '#af9726',
    950: '#000000',
  },
}
SCSS
$custom: #af9726;
$custom-light: #cbb56a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9726",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 38
  },
  "hsl": {
    "h": 49.489,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.67869,
    "c": 0.1279,
    "h": 96.4
  },
  "luminance": 0.31387
}

Semantic roles & 50–950 ramp

primary
#AF9726
secondary
#6A7AC7
accent
#5EE740
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9726

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

Preview Lab → · Contrast checker → · Palette generator →

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