#AFAF5F#AFAF5F

#AFAF5F is a light, moderate yellow. Relative luminance 0.406; OKLCH L 73.6% C 0.103 H 108.7°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#AFAF5F
RGBrgb(175, 175, 95)
HSLhsl(60, 33%, 53%)
HSVhsv(60, 46%, 69%)
CMYKcmyk(0%, 0%, 45.7%, 31.4%)
CIE-LABlab(69.90, -11.60, 40.80)
CIE-LCHlch(69.90, 42.41, 105.87°)
OKLaboklab(73.64% -0.033 0.0976)
OKLCHoklch(73.64% 0.103 108.7)
XYZxyz(35.0754, 40.6009, 16.8133)
Luminance0.4060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF5F #5F5FAF
analogous
#AF875F #AFAF5F #87AF5F
triadic
#AFAF5F #5FAFAF #AF5FAF
tetradic
#AFAF5F #5FAF87 #5F5FAF #AF5F87
square
#AFAF5F #5FAF87 #5F5FAF #AF5F87
split-complementary
#AFAF5F #5F87AF #875FAF
monochromatic
#626231 #8B8B46 #AFAF5F #C3C388 #D8D8B1

Accessibility & contrast

On white

2.30
#AFAF5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#AFAF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF5F
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF5F#FFFFFF#000000##000000
##AFAF5F1.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA958
Deuteranopia (green-blind)
#BCAC63
Tritanopia (blue-blind)
#B9A69C
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afaf5f;
/* rgb */ color: rgb(175, 175, 95);
/* oklch */ color: oklch(73.6% 0.103 108.7);
Tailwind
colors: {
  custom: {
    50: '#c8c68e',
    500: '#afaf5f',
    950: '#000000',
  },
}
SCSS
$custom: #afaf5f;
$custom-light: #c8c68e;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf5f",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 95
  },
  "hsl": {
    "h": 60,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.73643,
    "c": 0.10304,
    "h": 108.7
  },
  "luminance": 0.406
}

Semantic roles & 50–950 ramp

primary
#AFAF5F
secondary
#A4A4C6
accent
#5EC95E
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFAF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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