#AFAF50#AFAF50

#AFAF50 is a light, moderate yellow. Relative luminance 0.404; OKLCH L 73.4% C 0.118 H 109.0°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#AFAF50
RGBrgb(175, 175, 80)
HSLhsl(60, 37%, 50%)
HSVhsv(60, 54%, 69%)
CMYKcmyk(0%, 0%, 54.3%, 31.4%)
CIE-LABlab(69.72, -12.96, 47.91)
CIE-LCHlch(69.72, 49.64, 105.14°)
OKLaboklab(73.45% -0.0384 0.1118)
OKLCHoklch(73.45% 0.118 109)
XYZxyz(34.4580, 40.3540, 13.5618)
Luminance0.4035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF50 #5050AF
analogous
#AF8050 #AFAF50 #80AF50
triadic
#AFAF50 #50AFAF #AF50AF
tetradic
#AFAF50 #50AF80 #5050AF #AF5080
square
#AFAF50 #50AF80 #5050AF #AF5080
split-complementary
#AFAF50 #507FAF #7F50AF
monochromatic
#5B5B2A #85853D #AFAF50 #C2C27A #D5D5A4

Accessibility & contrast

On white

2.32
#AFAF50 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.07
#AFAF50 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF50
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF50#FFFFFF#000000##000000
##AFAF501.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA846
Deuteranopia (green-blind)
#BDAC55
Tritanopia (blue-blind)
#BAA59A
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf50;
/* rgb */ color: rgb(175, 175, 80);
/* oklch */ color: oklch(73.4% 0.118 109.0);
Tailwind
colors: {
  custom: {
    50: '#c9c684',
    500: '#afaf50',
    950: '#000000',
  },
}
SCSS
$custom: #afaf50;
$custom-light: #c9c684;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf50",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 80
  },
  "hsl": {
    "h": 60,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.73448,
    "c": 0.11818,
    "h": 109
  },
  "luminance": 0.40353
}

Semantic roles & 50–950 ramp

primary
#AFAF50
secondary
#9898C3
accent
#5BCD5B
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFAF50

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

Preview Lab → · Contrast checker → · Palette generator →

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