#AFA63A#AFA63A

#AFA63A is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.3% C 0.127 H 104.5°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#AFA63A
RGBrgb(175, 166, 58)
HSLhsl(55, 50%, 46%)
HSVhsv(55, 67%, 69%)
CMYKcmyk(0%, 5.1%, 66.9%, 31.4%)
CIE-LABlab(67.05, -9.83, 54.81)
CIE-LCHlch(67.05, 55.68, 100.17°)
OKLaboklab(71.25% -0.032 0.1234)
OKLCHoklch(71.25% 0.127 104.5)
XYZxyz(32.0804, 36.6931, 9.3948)
Luminance0.3669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA63A #3A43AF
analogous
#AF6C3A #AFA63A #7DAF3A
triadic
#AFA63A #3AAFA6 #A63AAF
tetradic
#AFA63A #3AAF6C #3A43AF #AF3A7D
square
#AFA63A #3AAF6C #3A43AF #AF3A7D
split-complementary
#AFA63A #3A7DAF #6C3AAF
monochromatic
#534F1C #817A2B #AFA63A #C9C15D #D9D38B

Accessibility & contrast

On white

2.52
#AFA63A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#AFA63A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA63A
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA63A#FFFFFF#000000##000000
##AFA63A1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A02B
Deuteranopia (green-blind)
#B7A541
Tritanopia (blue-blind)
#BC9B90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa63a;
/* rgb */ color: rgb(175, 166, 58);
/* oklch */ color: oklch(71.3% 0.127 104.5);
Tailwind
colors: {
  custom: {
    50: '#cac076',
    500: '#afa63a',
    950: '#000000',
  },
}
SCSS
$custom: #afa63a;
$custom-light: #cac076;
$custom-dark: #000000;
JSON
{
  "hex": "#afa63a",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 58
  },
  "hsl": {
    "h": 55.385,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71254,
    "c": 0.12746,
    "h": 104.5
  },
  "luminance": 0.36692
}

Semantic roles & 50–950 ramp

primary
#AFA63A
secondary
#8287C3
accent
#59DA4E
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA63A

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

Preview Lab → · Contrast checker → · Palette generator →

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