#AFA93F#AFA93F

#AFA93F is a light, vivid yellow. Relative luminance 0.378; OKLCH L 72.0% C 0.127 H 106.1°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#AFA93F
RGBrgb(175, 169, 63)
HSLhsl(57, 47%, 47%)
HSVhsv(57, 64%, 69%)
CMYKcmyk(0%, 3.4%, 64%, 31.4%)
CIE-LABlab(67.91, -11.09, 53.60)
CIE-LCHlch(67.91, 54.73, 101.69°)
OKLaboklab(71.95% -0.035 0.1216)
OKLCHoklch(71.95% 0.127 106.1)
XYZxyz(32.7655, 37.8499, 10.2815)
Luminance0.3785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA93F #3F45AF
analogous
#AF713F #AFA93F #7DAF3F
triadic
#AFA93F #3FAFA9 #A93FAF
tetradic
#AFA93F #3FAF71 #3F45AF #AF3F7D
square
#AFA93F #3FAF71 #3F45AF #AF3F7D
split-complementary
#AFA93F #3F7DAF #713FAF
monochromatic
#55521F #827E2F #AFA93F #C7C264 #D7D491

Accessibility & contrast

On white

2.45
#AFA93F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#AFA93F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA93F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA93F#FFFFFF#000000##000000
##AFA93F1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A332
Deuteranopia (green-blind)
#B9A845
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa93f;
/* rgb */ color: rgb(175, 169, 63);
/* oklch */ color: oklch(72.0% 0.127 106.1);
Tailwind
colors: {
  custom: {
    50: '#cac279',
    500: '#afa93f',
    950: '#000000',
  },
}
SCSS
$custom: #afa93f;
$custom-light: #cac279;
$custom-dark: #000000;
JSON
{
  "hex": "#afa93f",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 63
  },
  "hsl": {
    "h": 56.786,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.71954,
    "c": 0.12656,
    "h": 106.1
  },
  "luminance": 0.37849
}

Semantic roles & 50–950 ramp

primary
#AFA93F
secondary
#878AC3
accent
#58D751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA93F

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

Preview Lab → · Contrast checker → · Palette generator →

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