#AFAA2B#AFAA2B

#AFAA2B is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.141 H 107.1°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#AFAA2B
RGBrgb(175, 170, 43)
HSLhsl(58, 61%, 43%)
HSVhsv(58, 75%, 69%)
CMYKcmyk(0%, 2.9%, 75.4%, 31.4%)
CIE-LABlab(68.05, -12.68, 61.44)
CIE-LCHlch(68.05, 62.73, 101.66°)
OKLaboklab(72.02% -0.0415 0.1347)
OKLCHoklch(72.02% 0.141 107.1)
XYZxyz(32.4913, 38.0390, 7.9158)
Luminance0.3804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA2B #2B30AF
analogous
#AF682B #AFAA2B #72AF2B
triadic
#AFAA2B #2BAFAA #AA2BAF
tetradic
#AFAA2B #2BAF68 #2B30AF #AF2B72
square
#AFAA2B #2BAF68 #2B30AF #AF2B72
split-complementary
#AFAA2B #2B72AF #682BAF
monochromatic
#4D4B13 #7E7A1F #AFAA2B #D1CC46 #DEDA77

Accessibility & contrast

On white

2.44
#AFAA2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#AFAA2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA2B
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA2B#FFFFFF#000000##000000
##AFAA2B1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A30E
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa2b;
/* rgb */ color: rgb(175, 170, 43);
/* oklch */ color: oklch(72.0% 0.141 107.1);
Tailwind
colors: {
  custom: {
    50: '#cbc36f',
    500: '#afaa2b',
    950: '#000000',
  },
}
SCSS
$custom: #afaa2b;
$custom-light: #cbc36f;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa2b",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 43
  },
  "hsl": {
    "h": 57.727,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72022,
    "c": 0.14099,
    "h": 107.1
  },
  "luminance": 0.38038
}

Semantic roles & 50–950 ramp

primary
#AFAA2B
secondary
#7074C5
accent
#4AE444
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA2B

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

Preview Lab → · Contrast checker → · Palette generator →

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