#AFA140#AFA140

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

Color values

HEX#AFA140
RGBrgb(175, 161, 64)
HSLhsl(52, 46%, 47%)
HSVhsv(52, 63%, 69%)
CMYKcmyk(0%, 8%, 63.4%, 31.4%)
CIE-LABlab(65.73, -6.81, 50.83)
CIE-LCHlch(65.73, 51.29, 97.64°)
OKLaboklab(70.22% -0.0227 0.1159)
OKLCHoklch(70.22% 0.118 101.1)
XYZxyz(31.3507, 34.9752, 9.9490)
Luminance0.3497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA140 #404EAF
analogous
#AF6940 #AFA140 #86AF40
triadic
#AFA140 #40AFA1 #A140AF
tetradic
#AFA140 #40AF69 #404EAF #AF4086
square
#AFA140 #40AF69 #404EAF #AF4086
split-complementary
#AFA140 #4086AF #6940AF
monochromatic
#554F1F #827830 #AFA140 #C7BB65 #D7CF92

Accessibility & contrast

On white

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

On black

7.99
#AFA140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA140
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA140#FFFFFF#000000##000000
##AFA1401.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C35
Deuteranopia (green-blind)
#B3A245
Tritanopia (blue-blind)
#BC968C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa140;
/* rgb */ color: rgb(175, 161, 64);
/* oklch */ color: oklch(70.2% 0.118 101.1);
Tailwind
colors: {
  custom: {
    50: '#cabc79',
    500: '#afa140',
    950: '#000000',
  },
}
SCSS
$custom: #afa140;
$custom-light: #cabc79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa140",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 64
  },
  "hsl": {
    "h": 52.432,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.70223,
    "c": 0.11812,
    "h": 101.1
  },
  "luminance": 0.34974
}

Semantic roles & 50–950 ramp

primary
#AFA140
secondary
#8890C3
accent
#62D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA140

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

Preview Lab → · Contrast checker → · Palette generator →

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