#AFAA46#AFAA46

#AFAA46 is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.2% C 0.122 H 106.4°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#AFAA46
RGBrgb(175, 170, 70)
HSLhsl(57, 43%, 48%)
HSVhsv(57, 60%, 69%)
CMYKcmyk(0%, 2.9%, 60%, 31.4%)
CIE-LABlab(68.25, -11.14, 50.88)
CIE-LCHlch(68.25, 52.08, 102.35°)
OKLaboklab(72.24% -0.0344 0.1169)
OKLCHoklch(72.24% 0.122 106.4)
XYZxyz(33.1605, 38.3067, 11.4403)
Luminance0.3831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA46 #464BAF
analogous
#AF7546 #AFAA46 #7FAF46
triadic
#AFAA46 #46AFAA #AA46AF
tetradic
#AFAA46 #46AF75 #464BAF #AF467F
square
#AFAA46 #46AF75 #464BAF #AF467F
split-complementary
#AFAA46 #467FAF #7546AF
monochromatic
#585523 #838035 #AFAA46 #C5C16D #D6D399

Accessibility & contrast

On white

2.42
#AFAA46 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#AFAA46 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA46
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA46#FFFFFF#000000##000000
##AFAA461.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A43B
Deuteranopia (green-blind)
#BAA84C
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa46;
/* rgb */ color: rgb(175, 170, 70);
/* oklch */ color: oklch(72.2% 0.122 106.4);
Tailwind
colors: {
  custom: {
    50: '#c9c37d',
    500: '#afaa46',
    950: '#000000',
  },
}
SCSS
$custom: #afaa46;
$custom-light: #c9c37d;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa46",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 70
  },
  "hsl": {
    "h": 57.143,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.72241,
    "c": 0.12181,
    "h": 106.4
  },
  "luminance": 0.38306
}

Semantic roles & 50–950 ramp

primary
#AFAA46
secondary
#8E91C2
accent
#5BD355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAA46

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

Preview Lab → · Contrast checker → · Palette generator →

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