#AF9825#AF9825

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

Color values

HEX#AF9825
RGBrgb(175, 152, 37)
HSLhsl(50, 65%, 42%)
HSVhsv(50, 79%, 69%)
CMYKcmyk(0%, 13.1%, 78.9%, 31.4%)
CIE-LABlab(63.10, -3.40, 58.90)
CIE-LCHlch(63.10, 59.00, 93.30°)
OKLaboklab(68.08% -0.016 0.1281)
OKLCHoklch(68.08% 0.129 97.1)
XYZxyz(29.2429, 31.7056, 6.3294)
Luminance0.3170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9825 #253CAF
analogous
#AF5325 #AF9825 #81AF25
triadic
#AF9825 #25AF98 #9825AF
tetradic
#AF9825 #25AF53 #253CAF #AF2581
square
#AF9825 #25AF53 #253CAF #AF2581
split-complementary
#AF9825 #2581AF #5325AF
monochromatic
#4A4010 #7C6C1A #AF9825 #D6BC3C #E0CD6E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9825#FFFFFF#000000##000000
##AF98251.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)
#A89409
Deuteranopia (green-blind)
#AE9C2D
Tritanopia (blue-blind)
#BD8C82
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9825;
/* rgb */ color: rgb(175, 152, 37);
/* oklch */ color: oklch(68.1% 0.129 97.1);
Tailwind
colors: {
  custom: {
    50: '#cbb56a',
    500: '#af9825',
    950: '#000000',
  },
}
SCSS
$custom: #af9825;
$custom-light: #cbb56a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9825",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 37
  },
  "hsl": {
    "h": 50,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.68077,
    "c": 0.12913,
    "h": 97.1
  },
  "luminance": 0.31704
}

Semantic roles & 50–950 ramp

primary
#AF9825
secondary
#6979C7
accent
#5CE840
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9825

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

Preview Lab → · Contrast checker → · Palette generator →

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