#AFAA3C#AFAA3C

#AFAA3C is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.1% C 0.130 H 106.7°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#AFAA3C
RGBrgb(175, 170, 60)
HSLhsl(57, 49%, 46%)
HSVhsv(57, 66%, 69%)
CMYKcmyk(0%, 2.9%, 65.7%, 31.4%)
CIE-LABlab(68.16, -11.80, 55.13)
CIE-LCHlch(68.16, 56.38, 102.08°)
OKLaboklab(72.15% -0.0374 0.1244)
OKLCHoklch(72.15% 0.13 106.7)
XYZxyz(32.8707, 38.1907, 9.9141)
Luminance0.3819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA3C #3C41AF
analogous
#AF703C #AFAA3C #7AAF3C
triadic
#AFAA3C #3CAFAA #AA3CAF
tetradic
#AFAA3C #3CAF70 #3C41AF #AF3C7A
square
#AFAA3C #3CAF70 #3C41AF #AF3C7A
split-complementary
#AFAA3C #3C7AAF #703CAF
monochromatic
#54511D #817E2C #AFAA3C #C8C460 #D8D58D

Accessibility & contrast

On white

2.43
#AFAA3C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#AFAA3C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA3C
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA3C#FFFFFF#000000##000000
##AFAA3C1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A42D
Deuteranopia (green-blind)
#BAA843
Tritanopia (blue-blind)
#BB9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa3c;
/* rgb */ color: rgb(175, 170, 60);
/* oklch */ color: oklch(72.1% 0.130 106.7);
Tailwind
colors: {
  custom: {
    50: '#cac378',
    500: '#afaa3c',
    950: '#000000',
  },
}
SCSS
$custom: #afaa3c;
$custom-light: #cac378;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa3c",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 60
  },
  "hsl": {
    "h": 57.391,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72146,
    "c": 0.12987,
    "h": 106.7
  },
  "luminance": 0.3819
}

Semantic roles & 50–950 ramp

primary
#AFAA3C
secondary
#8487C3
accent
#55D84F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAA3C

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

Preview Lab → · Contrast checker → · Palette generator →

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