#AFA242#AFA242

#AFA242 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.5% C 0.117 H 101.6°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#AFA242
RGBrgb(175, 162, 66)
HSLhsl(53, 45%, 47%)
HSVhsv(53, 62%, 69%)
CMYKcmyk(0%, 7.4%, 62.3%, 31.4%)
CIE-LABlab(66.02, -7.21, 50.25)
CIE-LCHlch(66.02, 50.76, 98.17°)
OKLaboklab(70.46% -0.0236 0.115)
OKLCHoklch(70.46% 0.117 101.6)
XYZxyz(31.5841, 35.3492, 10.3126)
Luminance0.3535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA242 #424FAF
analogous
#AF6C42 #AFA242 #86AF42
triadic
#AFA242 #42AFA2 #A242AF
tetradic
#AFA242 #42AF6C #424FAF #AF4286
square
#AFA242 #42AF6C #424FAF #AF4286
split-complementary
#AFA242 #4286AF #6C42AF
monochromatic
#565020 #837931 #AFA242 #C6BB68 #D7CF95

Accessibility & contrast

On white

2.60
#AFA242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#AFA242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA242
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA242#FFFFFF#000000##000000
##AFA2421.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D37
Deuteranopia (green-blind)
#B4A347
Tritanopia (blue-blind)
#BC978D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa242;
/* rgb */ color: rgb(175, 162, 66);
/* oklch */ color: oklch(70.5% 0.117 101.6);
Tailwind
colors: {
  custom: {
    50: '#cabd7a',
    500: '#afa242',
    950: '#000000',
  },
}
SCSS
$custom: #afa242;
$custom-light: #cabd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa242",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 52.844,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.7046,
    "c": 0.11737,
    "h": 101.6
  },
  "luminance": 0.35348
}

Semantic roles & 50–950 ramp

primary
#AFA242
secondary
#8A91C2
accent
#62D553
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA242

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

Preview Lab → · Contrast checker → · Palette generator →

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