#AFAA2F#AFAA2F

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

Color values

HEX#AFAA2F
RGBrgb(175, 170, 47)
HSLhsl(58, 58%, 44%)
HSVhsv(58, 73%, 69%)
CMYKcmyk(0%, 2.9%, 73.1%, 31.4%)
CIE-LABlab(68.07, -12.50, 60.08)
CIE-LCHlch(68.07, 61.36, 101.75°)
OKLaboklab(72.05% -0.0407 0.1326)
OKLCHoklch(72.05% 0.139 107.1)
XYZxyz(32.5683, 38.0698, 8.3214)
Luminance0.3807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA2F #2F34AF
analogous
#AF6A2F #AFAA2F #74AF2F
triadic
#AFAA2F #2FAFAA #AA2FAF
tetradic
#AFAA2F #2FAF6A #2F34AF #AF2F74
square
#AFAA2F #2FAF6A #2F34AF #AF2F74
split-complementary
#AFAA2F #2F74AF #6A2FAF
monochromatic
#4F4C15 #7F7B22 #AFAA2F #CFCA4C #DCD87C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAA2F#FFFFFF#000000##000000
##AFAA2F1.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)
#B9A318
Deuteranopia (green-blind)
#BBA838
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa2f;
/* rgb */ color: rgb(175, 170, 47);
/* oklch */ color: oklch(72.0% 0.139 107.1);
Tailwind
colors: {
  custom: {
    50: '#cac371',
    500: '#afaa2f',
    950: '#000000',
  },
}
SCSS
$custom: #afaa2f;
$custom-light: #cac371;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa2f",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 47
  },
  "hsl": {
    "h": 57.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72047,
    "c": 0.13868,
    "h": 107.1
  },
  "luminance": 0.38069
}

Semantic roles & 50–950 ramp

primary
#AFAA2F
secondary
#7578C4
accent
#4DE147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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