#AFA643#AFA643

#AFA643 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.3% C 0.120 H 104.1°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA643
RGBrgb(175, 166, 67)
HSLhsl(55, 45%, 47%)
HSVhsv(55, 62%, 69%)
CMYKcmyk(0%, 5.1%, 61.7%, 31.4%)
CIE-LABlab(67.12, -9.26, 51.00)
CIE-LCHlch(67.12, 51.83, 100.29°)
OKLaboklab(71.34% -0.0294 0.1167)
OKLCHoklch(71.34% 0.12 104.1)
XYZxyz(32.3297, 36.7928, 10.7078)
Luminance0.3679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA643 #434CAF
analogous
#AF7043 #AFA643 #82AF43
triadic
#AFA643 #43AFA6 #A643AF
tetradic
#AFA643 #43AF70 #434CAF #AF4382
square
#AFA643 #43AF70 #434CAF #AF4382
split-complementary
#AFA643 #4382AF #7043AF
monochromatic
#565221 #837C32 #AFA643 #C6BE69 #D7D196

Accessibility & contrast

On white

2.51
#AFA643 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#AFA643 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA643
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA643#FFFFFF#000000##000000
##AFA6431.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A138
Deuteranopia (green-blind)
#B7A648
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa643;
/* rgb */ color: rgb(175, 166, 67);
/* oklch */ color: oklch(71.3% 0.120 104.1);
Tailwind
colors: {
  custom: {
    50: '#cac07b',
    500: '#afa643',
    950: '#000000',
  },
}
SCSS
$custom: #afa643;
$custom-light: #cac07b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa643",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 67
  },
  "hsl": {
    "h": 55,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71338,
    "c": 0.12034,
    "h": 104.1
  },
  "luminance": 0.36792
}

Semantic roles & 50–950 ramp

primary
#AFA643
secondary
#8B90C2
accent
#5ED453
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA643

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

Preview Lab → · Contrast checker → · Palette generator →

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