#AFA43E#AFA43E

#AFA43E is a light, vivid yellow. Relative luminance 0.360; OKLCH L 70.9% C 0.122 H 103.2°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#AFA43E
RGBrgb(175, 164, 62)
HSLhsl(54, 48%, 46%)
HSVhsv(54, 65%, 69%)
CMYKcmyk(0%, 6.3%, 64.6%, 31.4%)
CIE-LABlab(66.53, -8.53, 52.57)
CIE-LCHlch(66.53, 53.26, 99.22°)
OKLaboklab(70.85% -0.0279 0.1193)
OKLCHoklch(70.85% 0.123 103.2)
XYZxyz(31.8254, 36.0139, 9.8315)
Luminance0.3601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA43E #3E49AF
analogous
#AF6C3E #AFA43E #82AF3E
triadic
#AFA43E #3EAFA4 #A43EAF
tetradic
#AFA43E #3EAF6C #3E49AF #AF3E82
square
#AFA43E #3EAF6C #3E49AF #AF3E82
split-complementary
#AFA43E #3E82AF #6C3EAF
monochromatic
#554F1E #827A2E #AFA43E #C8BE63 #D8D190

Accessibility & contrast

On white

2.56
#AFA43E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#AFA43E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA43E
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA43E#FFFFFF#000000##000000
##AFA43E1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F31
Deuteranopia (green-blind)
#B6A444
Tritanopia (blue-blind)
#BC998F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa43e;
/* rgb */ color: rgb(175, 164, 62);
/* oklch */ color: oklch(70.9% 0.122 103.2);
Tailwind
colors: {
  custom: {
    50: '#cabe78',
    500: '#afa43e',
    950: '#000000',
  },
}
SCSS
$custom: #afa43e;
$custom-light: #cabe78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa43e",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 62
  },
  "hsl": {
    "h": 54.159,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.70854,
    "c": 0.1225,
    "h": 103.2
  },
  "luminance": 0.36013
}

Semantic roles & 50–950 ramp

primary
#AFA43E
secondary
#868CC3
accent
#5ED751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA43E

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

Preview Lab → · Contrast checker → · Palette generator →

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