#AF9628#AF9628

#AF9628 is a light, vivid yellow. Relative luminance 0.311; OKLCH L 67.7% C 0.126 H 95.6°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#AF9628
RGBrgb(175, 150, 40)
HSLhsl(49, 63%, 42%)
HSVhsv(49, 77%, 69%)
CMYKcmyk(0%, 14.3%, 77.1%, 31.4%)
CIE-LABlab(62.58, -2.20, 57.39)
CIE-LCHlch(62.58, 57.43, 92.20°)
OKLaboklab(67.67% -0.0123 0.1255)
OKLCHoklch(67.67% 0.126 95.6)
XYZxyz(28.9701, 31.0815, 6.4805)
Luminance0.3108 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9628 #2841AF
analogous
#AF5328 #AF9628 #85AF28
triadic
#AF9628 #28AF96 #9628AF
tetradic
#AF9628 #28AF53 #2841AF #AF2885
square
#AF9628 #28AF53 #2841AF #AF2885
split-complementary
#AF9628 #2885AF #5328AF
monochromatic
#4B4111 #7D6B1D #AF9628 #D4B841 #DFCB73

Accessibility & contrast

On white

2.91
#AF9628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#AF9628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9628
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9628#FFFFFF#000000##000000
##AF96281.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69312
Deuteranopia (green-blind)
#AC9B2F
Tritanopia (blue-blind)
#BD8A81
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af9628;
/* rgb */ color: rgb(175, 150, 40);
/* oklch */ color: oklch(67.7% 0.126 95.6);
Tailwind
colors: {
  custom: {
    50: '#cbb46b',
    500: '#af9628',
    950: '#000000',
  },
}
SCSS
$custom: #af9628;
$custom-light: #cbb46b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9628",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 40
  },
  "hsl": {
    "h": 48.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.67669,
    "c": 0.12611,
    "h": 95.6
  },
  "luminance": 0.3108
}

Semantic roles & 50–950 ramp

primary
#AF9628
secondary
#6D7DC6
accent
#60E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9628

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

Preview Lab → · Contrast checker → · Palette generator →

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