#AFA63F#AFA63F

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

Color values

HEX#AFA63F
RGBrgb(175, 166, 63)
HSLhsl(55, 47%, 47%)
HSVhsv(55, 64%, 69%)
CMYKcmyk(0%, 5.1%, 64%, 31.4%)
CIE-LABlab(67.09, -9.52, 52.72)
CIE-LCHlch(67.09, 53.58, 100.24°)
OKLaboklab(71.3% -0.0306 0.1198)
OKLCHoklch(71.3% 0.124 104.3)
XYZxyz(32.2138, 36.7465, 10.0976)
Luminance0.3674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA63F #3F48AF
analogous
#AF6E3F #AFA63F #80AF3F
triadic
#AFA63F #3FAFA6 #A63FAF
tetradic
#AFA63F #3FAF6E #3F48AF #AF3F80
square
#AFA63F #3FAF6E #3F48AF #AF3F80
split-complementary
#AFA63F #3F80AF #6E3FAF
monochromatic
#55511F #827B2F #AFA63F #C7BF64 #D7D291

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA63F#FFFFFF#000000##000000
##AFA63F1.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)
#B4A032
Deuteranopia (green-blind)
#B7A645
Tritanopia (blue-blind)
#BC9B90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa63f;
/* rgb */ color: rgb(175, 166, 63);
/* oklch */ color: oklch(71.3% 0.124 104.3);
Tailwind
colors: {
  custom: {
    50: '#cac079',
    500: '#afa63f',
    950: '#000000',
  },
}
SCSS
$custom: #afa63f;
$custom-light: #cac079;
$custom-dark: #000000;
JSON
{
  "hex": "#afa63f",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 63
  },
  "hsl": {
    "h": 55.179,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.71299,
    "c": 0.12361,
    "h": 104.3
  },
  "luminance": 0.36745
}

Semantic roles & 50–950 ramp

primary
#AFA63F
secondary
#878CC3
accent
#5CD751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA63F

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

Preview Lab → · Contrast checker → · Palette generator →

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