#AFA262#AFA262

#AFA262 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.086 H 98.1°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA262
RGBrgb(175, 162, 98)
HSLhsl(50, 32%, 54%)
HSVhsv(50, 44%, 69%)
CMYKcmyk(0%, 7.4%, 44%, 31.4%)
CIE-LABlab(66.40, -4.43, 34.91)
CIE-LCHlch(66.40, 35.19, 97.22°)
OKLaboklab(70.88% -0.0121 0.0847)
OKLCHoklch(70.88% 0.086 98.1)
XYZxyz(32.8049, 35.8376, 16.7422)
Luminance0.3584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA262 #626FAF
analogous
#AF7B62 #AFA262 #95AF62
triadic
#AFA262 #62AFA2 #A262AF
tetradic
#AFA262 #62AF7B #626FAF #AF6295
square
#AFA262 #62AF7B #626FAF #AF6295
split-complementary
#AFA262 #6295AF #7B62AF
monochromatic
#645C33 #8C8147 #AFA262 #C4BA8B #D8D2B3

Accessibility & contrast

On white

2.57
#AFA262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AFA262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA262
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA262#FFFFFF#000000##000000
##AFA2621.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9F5D
Deuteranopia (green-blind)
#B1A465
Tritanopia (blue-blind)
#BA9992
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa262;
/* rgb */ color: rgb(175, 162, 98);
/* oklch */ color: oklch(70.9% 0.086 98.1);
Tailwind
colors: {
  custom: {
    50: '#c8bd90',
    500: '#afa262',
    950: '#000000',
  },
}
SCSS
$custom: #afa262;
$custom-light: #c8bd90;
$custom-dark: #000000;
JSON
{
  "hex": "#afa262",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 98
  },
  "hsl": {
    "h": 49.87,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.70879,
    "c": 0.08552,
    "h": 98.1
  },
  "luminance": 0.35836
}

Semantic roles & 50–950 ramp

primary
#AFA262
secondary
#A6ABC7
accent
#71C95F
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA262

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

Preview Lab → · Contrast checker → · Palette generator →

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