#AFA25E#AFA25E

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

Color values

HEX#AFA25E
RGBrgb(175, 162, 94)
HSLhsl(50, 34%, 53%)
HSVhsv(50, 46%, 69%)
CMYKcmyk(0%, 7.4%, 46.3%, 31.4%)
CIE-LABlab(66.34, -4.84, 36.93)
CIE-LCHlch(66.34, 37.24, 97.47°)
OKLaboklab(70.82% -0.0137 0.0889)
OKLCHoklch(70.82% 0.09 98.7)
XYZxyz(32.6208, 35.7639, 15.7723)
Luminance0.3576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA25E #5E6BAF
analogous
#AF795E #AFA25E #94AF5E
triadic
#AFA25E #5EAFA2 #A25EAF
tetradic
#AFA25E #5EAF79 #5E6BAF #AF5E94
square
#AFA25E #5EAF79 #5E6BAF #AF5E94
split-complementary
#AFA25E #5E94AF #795EAF
monochromatic
#625A31 #8B8045 #AFA25E #C3BA87 #D8D1B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA25E#FFFFFF#000000##000000
##AFA25E1.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)
#AE9E58
Deuteranopia (green-blind)
#B2A361
Tritanopia (blue-blind)
#BA9992
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa25e;
/* rgb */ color: rgb(175, 162, 94);
/* oklch */ color: oklch(70.8% 0.090 98.7);
Tailwind
colors: {
  custom: {
    50: '#c8bd8d',
    500: '#afa25e',
    950: '#000000',
  },
}
SCSS
$custom: #afa25e;
$custom-light: #c8bd8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa25e",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 94
  },
  "hsl": {
    "h": 50.37,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.70816,
    "c": 0.08997,
    "h": 98.7
  },
  "luminance": 0.35763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA25E

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

Preview Lab → · Contrast checker → · Palette generator →

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