#AFAF3B#AFAF3B

#AFAF3B is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.2% C 0.136 H 109.3°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#AFAF3B
RGBrgb(175, 175, 59)
HSLhsl(60, 50%, 46%)
HSVhsv(60, 66%, 69%)
CMYKcmyk(0%, 0%, 66.3%, 31.4%)
CIE-LABlab(69.53, -14.44, 56.95)
CIE-LCHlch(69.53, 58.76, 104.23°)
OKLaboklab(73.24% -0.0449 0.1281)
OKLCHoklch(73.24% 0.136 109.3)
XYZxyz(33.7997, 40.0906, 10.0946)
Luminance0.4009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF3B #3B3BAF
analogous
#AF753B #AFAF3B #75AF3B
triadic
#AFAF3B #3BAFAF #AF3BAF
tetradic
#AFAF3B #3BAF75 #3B3BAF #AF3B75
square
#AFAF3B #3BAF75 #3B3BAF #AF3B75
split-complementary
#AFAF3B #3B75AF #753BAF
monochromatic
#53531C #81812C #AFAF3B #C9C95E #D8D88C

Accessibility & contrast

On white

2.33
#AFAF3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#AFAF3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF3B
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF3B#FFFFFF#000000##000000
##AFAF3B1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA82B
Deuteranopia (green-blind)
#BEAC43
Tritanopia (blue-blind)
#BBA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf3b;
/* rgb */ color: rgb(175, 175, 59);
/* oklch */ color: oklch(73.2% 0.136 109.3);
Tailwind
colors: {
  custom: {
    50: '#cac677',
    500: '#afaf3b',
    950: '#000000',
  },
}
SCSS
$custom: #afaf3b;
$custom-light: #cac677;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf3b",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 59
  },
  "hsl": {
    "h": 60,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.73239,
    "c": 0.13572,
    "h": 109.3
  },
  "luminance": 0.4009
}

Semantic roles & 50–950 ramp

primary
#AFAF3B
secondary
#8383C3
accent
#4FD94F
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFAF3B

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

Preview Lab → · Contrast checker → · Palette generator →

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