#AFA143#AFA143

#AFA143 is a light, moderate yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.116 H 100.9°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#AFA143
RGBrgb(175, 161, 67)
HSLhsl(52, 45%, 47%)
HSVhsv(52, 62%, 69%)
CMYKcmyk(0%, 8%, 61.7%, 31.4%)
CIE-LABlab(65.76, -6.61, 49.51)
CIE-LCHlch(65.76, 49.94, 97.61°)
OKLaboklab(70.25% -0.0218 0.1135)
OKLCHoklch(70.25% 0.116 100.9)
XYZxyz(31.4384, 35.0102, 10.4107)
Luminance0.3501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA143 #4351AF
analogous
#AF6B43 #AFA143 #87AF43
triadic
#AFA143 #43AFA1 #A143AF
tetradic
#AFA143 #43AF6B #4351AF #AF4387
square
#AFA143 #43AF6B #4351AF #AF4387
split-complementary
#AFA143 #4387AF #6B43AF
monochromatic
#565021 #837832 #AFA143 #C6BA69 #D7CE96

Accessibility & contrast

On white

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

On black

8.00
#AFA143 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA143
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA143#FFFFFF#000000##000000
##AFA1431.002.628.008.00
#FFFFFF2.621.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D39
Deuteranopia (green-blind)
#B3A248
Tritanopia (blue-blind)
#BC968D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa143;
/* rgb */ color: rgb(175, 161, 67);
/* oklch */ color: oklch(70.3% 0.116 100.9);
Tailwind
colors: {
  custom: {
    50: '#cabc7b',
    500: '#afa143',
    950: '#000000',
  },
}
SCSS
$custom: #afa143;
$custom-light: #cabc7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa143",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 67
  },
  "hsl": {
    "h": 52.222,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70254,
    "c": 0.11561,
    "h": 100.9
  },
  "luminance": 0.35009
}

Semantic roles & 50–950 ramp

primary
#AFA143
secondary
#8B93C2
accent
#64D453
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA143

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

Preview Lab → · Contrast checker → · Palette generator →

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