#AFA63B#AFA63B

#AFA63B 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#AFA63B
RGBrgb(175, 166, 59)
HSLhsl(55, 50%, 46%)
HSVhsv(55, 66%, 69%)
CMYKcmyk(0%, 5.1%, 66.3%, 31.4%)
CIE-LABlab(67.05, -9.77, 54.40)
CIE-LCHlch(67.05, 55.27, 100.18°)
OKLaboklab(71.26% -0.0317 0.1227)
OKLCHoklch(71.26% 0.127 104.5)
XYZxyz(32.1061, 36.7034, 9.5301)
Luminance0.3670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA63B #3B44AF
analogous
#AF6C3B #AFA63B #7EAF3B
triadic
#AFA63B #3BAFA6 #A63BAF
tetradic
#AFA63B #3BAF6C #3B44AF #AF3B7E
square
#AFA63B #3BAF6C #3B44AF #AF3B7E
split-complementary
#AFA63B #3B7EAF #6C3BAF
monochromatic
#534F1C #817B2C #AFA63B #C9C15E #D8D28C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA63B#FFFFFF#000000##000000
##AFA63B1.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)
#B4A02D
Deuteranopia (green-blind)
#B7A542
Tritanopia (blue-blind)
#BC9B90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa63b;
/* rgb */ color: rgb(175, 166, 59);
/* oklch */ color: oklch(71.3% 0.127 104.5);
Tailwind
colors: {
  custom: {
    50: '#cac077',
    500: '#afa63b',
    950: '#000000',
  },
}
SCSS
$custom: #afa63b;
$custom-light: #cac077;
$custom-dark: #000000;
JSON
{
  "hex": "#afa63b",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 59
  },
  "hsl": {
    "h": 55.345,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71262,
    "c": 0.12672,
    "h": 104.5
  },
  "luminance": 0.36702
}

Semantic roles & 50–950 ramp

primary
#AFA63B
secondary
#8388C3
accent
#59D94F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA63B

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

Preview Lab → · Contrast checker → · Palette generator →

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