#AFA14B#AFA14B

#AFA14B is a light, moderate yellow. Relative luminance 0.351; OKLCH L 70.3% C 0.108 H 100.2°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#AFA14B
RGBrgb(175, 161, 75)
HSLhsl(52, 40%, 49%)
HSVhsv(52, 57%, 69%)
CMYKcmyk(0%, 8%, 57.1%, 31.4%)
CIE-LABlab(65.84, -6.02, 45.84)
CIE-LCHlch(65.84, 46.24, 97.48°)
OKLaboklab(70.34% -0.0192 0.1067)
OKLCHoklch(70.34% 0.108 100.2)
XYZxyz(31.6952, 35.1129, 11.7632)
Luminance0.3511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA14B #4B59AF
analogous
#AF6F4B #AFA14B #8BAF4B
triadic
#AFA14B #4BAFA1 #A14BAF
tetradic
#AFA14B #4BAF6F #4B59AF #AF4B8B
square
#AFA14B #4BAF6F #4B59AF #AF4B8B
split-complementary
#AFA14B #4B8BAF #6F4BAF
monochromatic
#595226 #847A39 #AFA14B #C3B874 #D6CE9F

Accessibility & contrast

On white

2.62
#AFA14B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#AFA14B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA14B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA14B#FFFFFF#000000##000000
##AFA14B1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D42
Deuteranopia (green-blind)
#B3A24F
Tritanopia (blue-blind)
#BB978E
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa14b;
/* rgb */ color: rgb(175, 161, 75);
/* oklch */ color: oklch(70.3% 0.108 100.2);
Tailwind
colors: {
  custom: {
    50: '#c9bc80',
    500: '#afa14b',
    950: '#000000',
  },
}
SCSS
$custom: #afa14b;
$custom-light: #c9bc80;
$custom-dark: #000000;
JSON
{
  "hex": "#afa14b",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 75
  },
  "hsl": {
    "h": 51.6,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.70343,
    "c": 0.10843,
    "h": 100.2
  },
  "luminance": 0.35112
}

Semantic roles & 50–950 ramp

primary
#AFA14B
secondary
#939AC2
accent
#69D058
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA14B

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

Preview Lab → · Contrast checker → · Palette generator →

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