#AFA142#AFA142

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

Color values

HEX#AFA142
RGBrgb(175, 161, 66)
HSLhsl(52, 45%, 47%)
HSVhsv(52, 62%, 69%)
CMYKcmyk(0%, 8%, 62.3%, 31.4%)
CIE-LABlab(65.75, -6.68, 49.95)
CIE-LCHlch(65.75, 50.40, 97.62°)
OKLaboklab(70.24% -0.0221 0.1143)
OKLCHoklch(70.24% 0.116 101)
XYZxyz(31.4087, 34.9983, 10.2541)
Luminance0.3500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA142 #4250AF
analogous
#AF6B42 #AFA142 #86AF42
triadic
#AFA142 #42AFA1 #A142AF
tetradic
#AFA142 #42AF6B #4250AF #AF4286
square
#AFA142 #42AF6B #4250AF #AF4286
split-complementary
#AFA142 #4286AF #6B42AF
monochromatic
#564F20 #837831 #AFA142 #C6BA68 #D7CE95

Accessibility & contrast

On white

2.63
#AFA142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA142#FFFFFF#000000##000000
##AFA1421.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa142;
/* rgb */ color: rgb(175, 161, 66);
/* oklch */ color: oklch(70.2% 0.116 101.0);
Tailwind
colors: {
  custom: {
    50: '#cabc7a',
    500: '#afa142',
    950: '#000000',
  },
}
SCSS
$custom: #afa142;
$custom-light: #cabc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa142",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 66
  },
  "hsl": {
    "h": 52.294,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.70243,
    "c": 0.11645,
    "h": 101
  },
  "luminance": 0.34997
}

Semantic roles & 50–950 ramp

primary
#AFA142
secondary
#8A92C2
accent
#64D553
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA142

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

Preview Lab → · Contrast checker → · Palette generator →

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