#AF9828#AF9828

#AF9828 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.128 H 96.9°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#AF9828
RGBrgb(175, 152, 40)
HSLhsl(50, 63%, 42%)
HSVhsv(50, 77%, 69%)
CMYKcmyk(0%, 13.1%, 77.1%, 31.4%)
CIE-LABlab(63.12, -3.28, 57.89)
CIE-LCHlch(63.12, 57.98, 93.24°)
OKLaboklab(68.1% -0.0154 0.1266)
OKLCHoklch(68.1% 0.128 96.9)
XYZxyz(29.2920, 31.7252, 6.5878)
Luminance0.3172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9828 #283FAF
analogous
#AF5528 #AF9828 #83AF28
triadic
#AF9828 #28AF98 #9828AF
tetradic
#AF9828 #28AF55 #283FAF #AF2883
square
#AF9828 #28AF55 #283FAF #AF2883
split-complementary
#AF9828 #2883AF #5528AF
monochromatic
#4B4111 #7D6D1D #AF9828 #D4BA41 #DFCC73

Accessibility & contrast

On white

2.86
#AF9828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#AF9828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9828
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9828#FFFFFF#000000##000000
##AF98281.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89411
Deuteranopia (green-blind)
#AE9C2F
Tritanopia (blue-blind)
#BD8C83
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9828;
/* rgb */ color: rgb(175, 152, 40);
/* oklch */ color: oklch(68.1% 0.128 96.9);
Tailwind
colors: {
  custom: {
    50: '#cbb56b',
    500: '#af9828',
    950: '#000000',
  },
}
SCSS
$custom: #af9828;
$custom-light: #cbb56b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9828",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 49.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.68095,
    "c": 0.12751,
    "h": 96.9
  },
  "luminance": 0.31724
}

Semantic roles & 50–950 ramp

primary
#AF9828
secondary
#6D7CC6
accent
#5EE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9828

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

Preview Lab → · Contrast checker → · Palette generator →

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