#AFA63D#AFA63D

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

Color values

HEX#AFA63D
RGBrgb(175, 166, 61)
HSLhsl(55, 48%, 46%)
HSVhsv(55, 65%, 69%)
CMYKcmyk(0%, 5.1%, 65.1%, 31.4%)
CIE-LABlab(67.07, -9.65, 53.57)
CIE-LCHlch(67.07, 54.43, 100.21°)
OKLaboklab(71.28% -0.0312 0.1213)
OKLCHoklch(71.28% 0.125 104.4)
XYZxyz(32.1589, 36.7245, 9.8085)
Luminance0.3672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA63D #3D46AF
analogous
#AF6D3D #AFA63D #7FAF3D
triadic
#AFA63D #3DAFA6 #A63DAF
tetradic
#AFA63D #3DAF6D #3D46AF #AF3D7F
square
#AFA63D #3DAF6D #3D46AF #AF3D7F
split-complementary
#AFA63D #3D7FAF #6D3DAF
monochromatic
#54501D #827B2D #AFA63D #C8C061 #D8D28F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA63D#FFFFFF#000000##000000
##AFA63D1.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)
#B4A030
Deuteranopia (green-blind)
#B7A543
Tritanopia (blue-blind)
#BC9B90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa63d;
/* rgb */ color: rgb(175, 166, 61);
/* oklch */ color: oklch(71.3% 0.125 104.4);
Tailwind
colors: {
  custom: {
    50: '#cac078',
    500: '#afa63d',
    950: '#000000',
  },
}
SCSS
$custom: #afa63d;
$custom-light: #cac078;
$custom-dark: #000000;
JSON
{
  "hex": "#afa63d",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 61
  },
  "hsl": {
    "h": 55.263,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.7128,
    "c": 0.12519,
    "h": 104.4
  },
  "luminance": 0.36723
}

Semantic roles & 50–950 ramp

primary
#AFA63D
secondary
#858AC3
accent
#5BD850
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA63D

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

Preview Lab → · Contrast checker → · Palette generator →

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