#AFA25F#AFA25F

#AFA25F is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.089 H 98.6°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA25F
RGBrgb(175, 162, 95)
HSLhsl(50, 33%, 53%)
HSVhsv(50, 46%, 69%)
CMYKcmyk(0%, 7.4%, 45.7%, 31.4%)
CIE-LABlab(66.35, -4.74, 36.43)
CIE-LCHlch(66.35, 36.73, 97.41°)
OKLaboklab(70.83% -0.0133 0.0879)
OKLCHoklch(70.83% 0.089 98.6)
XYZxyz(32.6659, 35.7820, 16.0102)
Luminance0.3578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA25F #5F6CAF
analogous
#AF7A5F #AFA25F #94AF5F
triadic
#AFA25F #5FAFA2 #A25FAF
tetradic
#AFA25F #5FAF7A #5F6CAF #AF5F94
square
#AFA25F #5FAF7A #5F6CAF #AF5F94
split-complementary
#AFA25F #5F94AF #7A5FAF
monochromatic
#625A31 #8B8046 #AFA25F #C3BA88 #D8D1B1

Accessibility & contrast

On white

2.57
#AFA25F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA25F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA25F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA25F#FFFFFF#000000##000000
##AFA25F1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9F5A
Deuteranopia (green-blind)
#B1A362
Tritanopia (blue-blind)
#BA9992
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa25f;
/* rgb */ color: rgb(175, 162, 95);
/* oklch */ color: oklch(70.8% 0.089 98.6);
Tailwind
colors: {
  custom: {
    50: '#c8bd8d',
    500: '#afa25f',
    950: '#000000',
  },
}
SCSS
$custom: #afa25f;
$custom-light: #c8bd8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa25f",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 95
  },
  "hsl": {
    "h": 50.25,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.70831,
    "c": 0.08887,
    "h": 98.6
  },
  "luminance": 0.35781
}

Semantic roles & 50–950 ramp

primary
#AFA25F
secondary
#A4A9C6
accent
#70C95E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA25F

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

Preview Lab → · Contrast checker → · Palette generator →

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