#AFA63E#AFA63E

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

Color values

HEX#AFA63E
RGBrgb(175, 166, 62)
HSLhsl(55, 48%, 46%)
HSVhsv(55, 65%, 69%)
CMYKcmyk(0%, 5.1%, 64.6%, 31.4%)
CIE-LABlab(67.08, -9.59, 53.15)
CIE-LCHlch(67.08, 54.01, 100.22°)
OKLaboklab(71.29% -0.0309 0.1205)
OKLCHoklch(71.29% 0.124 104.4)
XYZxyz(32.1861, 36.7354, 9.9517)
Luminance0.3673 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA63E #3E47AF
analogous
#AF6E3E #AFA63E #80AF3E
triadic
#AFA63E #3EAFA6 #A63EAF
tetradic
#AFA63E #3EAF6E #3E47AF #AF3E80
square
#AFA63E #3EAF6E #3E47AF #AF3E80
split-complementary
#AFA63E #3E80AF #6E3EAF
monochromatic
#55501E #827B2E #AFA63E #C8C063 #D8D290

Accessibility & contrast

On white

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

On black

8.35
#AFA63E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA63E
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA63E#FFFFFF#000000##000000
##AFA63E1.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa63e;
/* rgb */ color: rgb(175, 166, 62);
/* oklch */ color: oklch(71.3% 0.124 104.4);
Tailwind
colors: {
  custom: {
    50: '#cac078',
    500: '#afa63e',
    950: '#000000',
  },
}
SCSS
$custom: #afa63e;
$custom-light: #cac078;
$custom-dark: #000000;
JSON
{
  "hex": "#afa63e",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 62
  },
  "hsl": {
    "h": 55.221,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71289,
    "c": 0.1244,
    "h": 104.4
  },
  "luminance": 0.36734
}

Semantic roles & 50–950 ramp

primary
#AFA63E
secondary
#868BC3
accent
#5BD751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA63E

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

Preview Lab → · Contrast checker → · Palette generator →

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