#AFA34B#AFA34B

#AFA34B is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.110 H 101.6°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA34B
RGBrgb(175, 163, 75)
HSLhsl(53, 40%, 49%)
HSVhsv(53, 57%, 69%)
CMYKcmyk(0%, 6.9%, 57.1%, 31.4%)
CIE-LABlab(66.38, -7.08, 46.46)
CIE-LCHlch(66.38, 47.00, 98.66°)
OKLaboklab(70.77% -0.0222 0.1081)
OKLCHoklch(70.77% 0.11 101.6)
XYZxyz(32.0475, 35.8175, 11.8806)
Luminance0.3582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA34B #4B57AF
analogous
#AF714B #AFA34B #89AF4B
triadic
#AFA34B #4BAFA3 #A34BAF
tetradic
#AFA34B #4BAF71 #4B57AF #AF4B89
square
#AFA34B #4BAF71 #4B57AF #AF4B89
split-complementary
#AFA34B #4B89AF #714BAF
monochromatic
#595326 #847B39 #AFA34B #C3BA74 #D6CF9F

Accessibility & contrast

On white

2.57
#AFA34B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA34B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA34B
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA34B#FFFFFF#000000##000000
##AFA34B1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09E42
Deuteranopia (green-blind)
#B4A44F
Tritanopia (blue-blind)
#BB998F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa34b;
/* rgb */ color: rgb(175, 163, 75);
/* oklch */ color: oklch(70.8% 0.110 101.6);
Tailwind
colors: {
  custom: {
    50: '#c9be80',
    500: '#afa34b',
    950: '#000000',
  },
}
SCSS
$custom: #afa34b;
$custom-light: #c9be80;
$custom-dark: #000000;
JSON
{
  "hex": "#afa34b",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 75
  },
  "hsl": {
    "h": 52.8,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.70774,
    "c": 0.11032,
    "h": 101.6
  },
  "luminance": 0.35816
}

Semantic roles & 50–950 ramp

primary
#AFA34B
secondary
#9399C2
accent
#66D058
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA34B

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

Preview Lab → · Contrast checker → · Palette generator →

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