#AFA25B#AFA25B

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

Color values

HEX#AFA25B
RGBrgb(175, 162, 91)
HSLhsl(51, 34%, 52%)
HSVhsv(51, 48%, 69%)
CMYKcmyk(0%, 7.4%, 48%, 31.4%)
CIE-LABlab(66.30, -5.14, 38.42)
CIE-LCHlch(66.30, 38.77, 97.62°)
OKLaboklab(70.77% -0.0148 0.092)
OKLCHoklch(70.77% 0.093 99.2)
XYZxyz(32.4888, 35.7111, 15.0771)
Luminance0.3571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA25B #5B68AF
analogous
#AF785B #AFA25B #92AF5B
triadic
#AFA25B #5BAFA2 #A25BAF
tetradic
#AFA25B #5BAF78 #5B68AF #AF5B92
square
#AFA25B #5BAF78 #5B68AF #AF5B92
split-complementary
#AFA25B #5B92AF #785BAF
monochromatic
#61592F #8A7F43 #AFA25B #C3B984 #D7D1AD

Accessibility & contrast

On white

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

On black

8.14
#AFA25B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA25B
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA25B#FFFFFF#000000##000000
##AFA25B1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa25b;
/* rgb */ color: rgb(175, 162, 91);
/* oklch */ color: oklch(70.8% 0.093 99.2);
Tailwind
colors: {
  custom: {
    50: '#c8bd8b',
    500: '#afa25b',
    950: '#000000',
  },
}
SCSS
$custom: #afa25b;
$custom-light: #c8bd8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa25b",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 91
  },
  "hsl": {
    "h": 50.714,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.70771,
    "c": 0.09323,
    "h": 99.2
  },
  "luminance": 0.3571
}

Semantic roles & 50–950 ramp

primary
#AFA25B
secondary
#A1A6C5
accent
#6ECB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA25B

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

Preview Lab → · Contrast checker → · Palette generator →

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