#AFA340#AFA340

#AFA340 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.120 H 102.4°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#AFA340
RGBrgb(175, 163, 64)
HSLhsl(54, 46%, 47%)
HSVhsv(54, 63%, 69%)
CMYKcmyk(0%, 6.9%, 63.4%, 31.4%)
CIE-LABlab(66.27, -7.88, 51.42)
CIE-LCHlch(66.27, 52.02, 98.71°)
OKLaboklab(70.66% -0.0258 0.1172)
OKLCHoklch(70.66% 0.12 102.4)
XYZxyz(31.7030, 35.6798, 10.0664)
Luminance0.3568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA340 #404CAF
analogous
#AF6C40 #AFA340 #83AF40
triadic
#AFA340 #40AFA3 #A340AF
tetradic
#AFA340 #40AF6C #404CAF #AF4083
square
#AFA340 #40AF6C #404CAF #AF4083
split-complementary
#AFA340 #4083AF #6C40AF
monochromatic
#55501F #827930 #AFA340 #C7BC65 #D7D092

Accessibility & contrast

On white

2.58
#AFA340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#AFA340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA340
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA340#FFFFFF#000000##000000
##AFA3401.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E34
Deuteranopia (green-blind)
#B5A445
Tritanopia (blue-blind)
#BC988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa340;
/* rgb */ color: rgb(175, 163, 64);
/* oklch */ color: oklch(70.7% 0.120 102.4);
Tailwind
colors: {
  custom: {
    50: '#cabe79',
    500: '#afa340',
    950: '#000000',
  },
}
SCSS
$custom: #afa340;
$custom-light: #cabe79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa340",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 64
  },
  "hsl": {
    "h": 53.514,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.70656,
    "c": 0.11996,
    "h": 102.4
  },
  "luminance": 0.35679
}

Semantic roles & 50–950 ramp

primary
#AFA340
secondary
#888FC3
accent
#60D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA340

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

Preview Lab → · Contrast checker → · Palette generator →

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