#AFA25D#AFA25D

#AFA25D is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.091 H 98.9°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#AFA25D
RGBrgb(175, 162, 93)
HSLhsl(50, 34%, 53%)
HSVhsv(50, 47%, 69%)
CMYKcmyk(0%, 7.4%, 46.9%, 31.4%)
CIE-LABlab(66.33, -4.94, 37.43)
CIE-LCHlch(66.33, 37.75, 97.52°)
OKLaboklab(70.8% -0.0141 0.09)
OKLCHoklch(70.8% 0.091 98.9)
XYZxyz(32.5762, 35.7461, 15.5375)
Luminance0.3574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA25D #5D6AAF
analogous
#AF795D #AFA25D #93AF5D
triadic
#AFA25D #5DAFA2 #A25DAF
tetradic
#AFA25D #5DAF79 #5D6AAF #AF5D93
square
#AFA25D #5DAF79 #5D6AAF #AF5D93
split-complementary
#AFA25D #5D93AF #795DAF
monochromatic
#615A30 #8A7F44 #AFA25D #C3BA86 #D7D1AF

Accessibility & contrast

On white

2.58
#AFA25D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#AFA25D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA25D
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA25D#FFFFFF#000000##000000
##AFA25D1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9E57
Deuteranopia (green-blind)
#B2A360
Tritanopia (blue-blind)
#BA9991
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa25d;
/* rgb */ color: rgb(175, 162, 93);
/* oklch */ color: oklch(70.8% 0.091 98.9);
Tailwind
colors: {
  custom: {
    50: '#c8bd8c',
    500: '#afa25d',
    950: '#000000',
  },
}
SCSS
$custom: #afa25d;
$custom-light: #c8bd8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa25d",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 93
  },
  "hsl": {
    "h": 50.488,
    "s": 33.884,
    "l": 52.549
  },
  "oklch": {
    "l": 0.70801,
    "c": 0.09106,
    "h": 98.9
  },
  "luminance": 0.35745
}

Semantic roles & 50–950 ramp

primary
#AFA25D
secondary
#A2A8C6
accent
#6FCA5E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA25D

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

Preview Lab → · Contrast checker → · Palette generator →

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