#AFAF61#AFAF61

#AFAF61 is a light, moderate yellow. Relative luminance 0.406; OKLCH L 73.7% C 0.101 H 108.6°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#AFAF61
RGBrgb(175, 175, 97)
HSLhsl(60, 33%, 53%)
HSVhsv(60, 45%, 69%)
CMYKcmyk(0%, 0%, 44.6%, 31.4%)
CIE-LABlab(69.92, -11.40, 39.82)
CIE-LCHlch(69.92, 41.42, 105.97°)
OKLaboklab(73.67% -0.0322 0.0956)
OKLCHoklch(73.67% 0.101 108.6)
XYZxyz(35.1675, 40.6377, 17.2983)
Luminance0.4064 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF61 #6161AF
analogous
#AF8861 #AFAF61 #88AF61
triadic
#AFAF61 #61AFAF #AF61AF
tetradic
#AFAF61 #61AF88 #6161AF #AF6188
square
#AFAF61 #61AF88 #6161AF #AF6188
split-complementary
#AFAF61 #6188AF #8861AF
monochromatic
#636332 #8C8C47 #AFAF61 #C4C48A #D8D8B2

Accessibility & contrast

On white

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

On black

9.13
#AFAF61 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF61
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF61#FFFFFF#000000##000000
##AFAF611.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaf61;
/* rgb */ color: rgb(175, 175, 97);
/* oklch */ color: oklch(73.7% 0.101 108.6);
Tailwind
colors: {
  custom: {
    50: '#c8c68f',
    500: '#afaf61',
    950: '#000000',
  },
}
SCSS
$custom: #afaf61;
$custom-light: #c8c68f;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf61",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 97
  },
  "hsl": {
    "h": 60,
    "s": 32.773,
    "l": 53.333
  },
  "oklch": {
    "l": 0.73673,
    "c": 0.10088,
    "h": 108.6
  },
  "luminance": 0.40637
}

Semantic roles & 50–950 ramp

primary
#AFAF61
secondary
#A5A5C7
accent
#5FC95F
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFAF61

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

Preview Lab → · Contrast checker → · Palette generator →

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