#AFAF74#AFAF74

#AFAF74 is a light, moderate yellow. Relative luminance 0.410; OKLCH L 74.0% C 0.079 H 108.2°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#AFAF74
RGBrgb(175, 175, 116)
HSLhsl(60, 27%, 57%)
HSVhsv(60, 34%, 69%)
CMYKcmyk(0%, 0%, 33.7%, 31.4%)
CIE-LABlab(70.20, -9.25, 30.32)
CIE-LCHlch(70.20, 31.70, 106.97°)
OKLaboklab(73.99% -0.0246 0.075)
OKLCHoklch(73.99% 0.079 108.2)
XYZxyz(36.1619, 41.0355, 22.5353)
Luminance0.4103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF74 #7474AF
analogous
#AF9274 #AFAF74 #92AF74
triadic
#AFAF74 #74AFAF #AF74AF
tetradic
#AFAF74 #74AF92 #7474AF #AF7492
square
#AFAF74 #74AF92 #7474AF #AF7492
split-complementary
#AFAF74 #7492AF #9274AF
monochromatic
#6B6B3E #929254 #AFAF74 #C5C59B #DCDCC2

Accessibility & contrast

On white

2.28
#AFAF74 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#AFAF74 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF74
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF74#FFFFFF#000000##000000
##AFAF741.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8AA70
Deuteranopia (green-blind)
#B9AD76
Tritanopia (blue-blind)
#B7A8A0
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afaf74;
/* rgb */ color: rgb(175, 175, 116);
/* oklch */ color: oklch(74.0% 0.079 108.2);
Tailwind
colors: {
  custom: {
    50: '#c8c69c',
    500: '#afaf74',
    950: '#000000',
  },
}
SCSS
$custom: #afaf74;
$custom-light: #c8c69c;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf74",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 116
  },
  "hsl": {
    "h": 60,
    "s": 26.941,
    "l": 57.059
  },
  "oklch": {
    "l": 0.73986,
    "c": 0.0789,
    "h": 108.2
  },
  "luminance": 0.41035
}

Semantic roles & 50–950 ramp

primary
#AFAF74
secondary
#B3B3CB
accent
#65C365
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFAF74

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

Preview Lab → · Contrast checker → · Palette generator →

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