#AFA43F#AFA43F

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

Color values

HEX#AFA43F
RGBrgb(175, 164, 63)
HSLhsl(54, 47%, 47%)
HSVhsv(54, 64%, 69%)
CMYKcmyk(0%, 6.3%, 64%, 31.4%)
CIE-LABlab(66.54, -8.47, 52.14)
CIE-LCHlch(66.54, 52.83, 99.23°)
OKLaboklab(70.86% -0.0276 0.1185)
OKLCHoklch(70.86% 0.122 103.1)
XYZxyz(31.8531, 36.0250, 9.9773)
Luminance0.3602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA43F #3F4AAF
analogous
#AF6C3F #AFA43F #82AF3F
triadic
#AFA43F #3FAFA4 #A43FAF
tetradic
#AFA43F #3FAF6C #3F4AAF #AF3F82
square
#AFA43F #3FAF6C #3F4AAF #AF3F82
split-complementary
#AFA43F #3F82AF #6C3FAF
monochromatic
#55501F #827A2F #AFA43F #C7BD64 #D7D091

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA43F#FFFFFF#000000##000000
##AFA43F1.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)
#B29F33
Deuteranopia (green-blind)
#B6A445
Tritanopia (blue-blind)
#BC998F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa43f;
/* rgb */ color: rgb(175, 164, 63);
/* oklch */ color: oklch(70.9% 0.122 103.1);
Tailwind
colors: {
  custom: {
    50: '#cabe79',
    500: '#afa43f',
    950: '#000000',
  },
}
SCSS
$custom: #afa43f;
$custom-light: #cabe79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa43f",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 63
  },
  "hsl": {
    "h": 54.107,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.70864,
    "c": 0.12171,
    "h": 103.1
  },
  "luminance": 0.36024
}

Semantic roles & 50–950 ramp

primary
#AFA43F
secondary
#878DC3
accent
#5ED751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA43F

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

Preview Lab → · Contrast checker → · Palette generator →

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