#AFA25C#AFA25C

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

Color values

HEX#AFA25C
RGBrgb(175, 162, 92)
HSLhsl(51, 34%, 52%)
HSVhsv(51, 47%, 69%)
CMYKcmyk(0%, 7.4%, 47.4%, 31.4%)
CIE-LABlab(66.31, -5.04, 37.93)
CIE-LCHlch(66.31, 38.26, 97.57°)
OKLaboklab(70.79% -0.0145 0.091)
OKLCHoklch(70.79% 0.092 99)
XYZxyz(32.5322, 35.7285, 15.3058)
Luminance0.3573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA25C #5C69AF
analogous
#AF785C #AFA25C #93AF5C
triadic
#AFA25C #5CAFA2 #A25CAF
tetradic
#AFA25C #5CAF78 #5C69AF #AF5C93
square
#AFA25C #5CAF78 #5C69AF #AF5C93
split-complementary
#AFA25C #5C93AF #785CAF
monochromatic
#615930 #8A7F44 #AFA25C #C3B985 #D7D1AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA25C#FFFFFF#000000##000000
##AFA25C1.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)
#AE9E56
Deuteranopia (green-blind)
#B2A35F
Tritanopia (blue-blind)
#BA9991
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa25c;
/* rgb */ color: rgb(175, 162, 92);
/* oklch */ color: oklch(70.8% 0.092 99.0);
Tailwind
colors: {
  custom: {
    50: '#c8bd8b',
    500: '#afa25c',
    950: '#000000',
  },
}
SCSS
$custom: #afa25c;
$custom-light: #c8bd8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa25c",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 92
  },
  "hsl": {
    "h": 50.602,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.70786,
    "c": 0.09215,
    "h": 99
  },
  "luminance": 0.35727
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA25C

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

Preview Lab → · Contrast checker → · Palette generator →

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