#AFA058#AFA058

#AFA058 is a light, moderate yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.095 H 97.8°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#AFA058
RGBrgb(175, 160, 88)
HSLhsl(50, 35%, 52%)
HSVhsv(50, 50%, 69%)
CMYKcmyk(0%, 8.6%, 49.7%, 31.4%)
CIE-LABlab(65.72, -4.36, 39.25)
CIE-LCHlch(65.72, 39.49, 96.33°)
OKLaboklab(70.3% -0.0129 0.0936)
OKLCHoklch(70.3% 0.095 97.8)
XYZxyz(32.0124, 34.9614, 14.2926)
Luminance0.3496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA058 #5867AF
analogous
#AF7558 #AFA058 #93AF58
triadic
#AFA058 #58AFA0 #A058AF
tetradic
#AFA058 #58AF75 #5867AF #AF5893
square
#AFA058 #58AF75 #5867AF #AF5893
split-complementary
#AFA058 #5893AF #7558AF
monochromatic
#5F572E #887C41 #AFA058 #C3B881 #D7CFAB

Accessibility & contrast

On white

2.63
#AFA058 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#AFA058 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA058
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA058#FFFFFF#000000##000000
##AFA0581.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9D52
Deuteranopia (green-blind)
#B1A25B
Tritanopia (blue-blind)
#BA978F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa058;
/* rgb */ color: rgb(175, 160, 88);
/* oklch */ color: oklch(70.3% 0.095 97.8);
Tailwind
colors: {
  custom: {
    50: '#c9bb89',
    500: '#afa058',
    950: '#000000',
  },
}
SCSS
$custom: #afa058;
$custom-light: #c9bb89;
$custom-dark: #000000;
JSON
{
  "hex": "#afa058",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 88
  },
  "hsl": {
    "h": 49.655,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.70299,
    "c": 0.09452,
    "h": 97.8
  },
  "luminance": 0.3496
}

Semantic roles & 50–950 ramp

primary
#AFA058
secondary
#9EA5C5
accent
#70CB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA058

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

Preview Lab → · Contrast checker → · Palette generator →

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