#AFAF4E#AFAF4E

#AFAF4E is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.4% C 0.120 H 109.0°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFAF4E
RGBrgb(175, 175, 78)
HSLhsl(60, 38%, 50%)
HSVhsv(60, 55%, 69%)
CMYKcmyk(0%, 0%, 55.4%, 31.4%)
CIE-LABlab(69.70, -13.13, 48.83)
CIE-LCHlch(69.70, 50.56, 105.05°)
OKLaboklab(73.43% -0.0391 0.1135)
OKLCHoklch(73.43% 0.12 109)
XYZxyz(34.3852, 40.3248, 13.1784)
Luminance0.4032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF4E #4E4EAF
analogous
#AF7F4E #AFAF4E #7FAF4E
triadic
#AFAF4E #4EAFAF #AF4EAF
tetradic
#AFAF4E #4EAF7F #4E4EAF #AF4E7F
square
#AFAF4E #4EAF7F #4E4EAF #AF4E7F
split-complementary
#AFAF4E #4E7FAF #7F4EAF
monochromatic
#5A5A28 #85853B #AFAF4E #C3C378 #D6D6A2

Accessibility & contrast

On white

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

On black

9.06
#AFAF4E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF4E
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF4E#FFFFFF#000000##000000
##AFAF4E1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaf4e;
/* rgb */ color: rgb(175, 175, 78);
/* oklch */ color: oklch(73.4% 0.120 109.0);
Tailwind
colors: {
  custom: {
    50: '#c9c683',
    500: '#afaf4e',
    950: '#000000',
  },
}
SCSS
$custom: #afaf4e;
$custom-light: #c9c683;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf4e",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 78
  },
  "hsl": {
    "h": 60,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.73425,
    "c": 0.12005,
    "h": 109
  },
  "luminance": 0.40324
}

Semantic roles & 50–950 ramp

primary
#AFAF4E
secondary
#9696C3
accent
#5ACE5A
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFAF4E

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

Preview Lab → · Contrast checker → · Palette generator →

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