#AFA23E#AFA23E

#AFA23E is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.4% C 0.121 H 101.9°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#AFA23E
RGBrgb(175, 162, 62)
HSLhsl(53, 48%, 46%)
HSVhsv(53, 65%, 69%)
CMYKcmyk(0%, 7.4%, 64.6%, 31.4%)
CIE-LABlab(65.98, -7.48, 51.99)
CIE-LCHlch(65.98, 52.52, 98.18°)
OKLaboklab(70.42% -0.0249 0.1181)
OKLCHoklch(70.42% 0.121 101.9)
XYZxyz(31.4703, 35.3037, 9.7131)
Luminance0.3530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA23E #3E4BAF
analogous
#AF6A3E #AFA23E #84AF3E
triadic
#AFA23E #3EAFA2 #A23EAF
tetradic
#AFA23E #3EAF6A #3E4BAF #AF3E84
square
#AFA23E #3EAF6A #3E4BAF #AF3E84
split-complementary
#AFA23E #3E84AF #6A3EAF
monochromatic
#554E1E #82782E #AFA23E #C8BC63 #D8CF90

Accessibility & contrast

On white

2.61
#AFA23E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#AFA23E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA23E
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA23E#FFFFFF#000000##000000
##AFA23E1.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa23e;
/* rgb */ color: rgb(175, 162, 62);
/* oklch */ color: oklch(70.4% 0.121 101.9);
Tailwind
colors: {
  custom: {
    50: '#cabd78',
    500: '#afa23e',
    950: '#000000',
  },
}
SCSS
$custom: #afa23e;
$custom-light: #cabd78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa23e",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 62
  },
  "hsl": {
    "h": 53.097,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.7042,
    "c": 0.12065,
    "h": 101.9
  },
  "luminance": 0.35302
}

Semantic roles & 50–950 ramp

primary
#AFA23E
secondary
#868DC3
accent
#60D751
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA23E

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

Preview Lab → · Contrast checker → · Palette generator →

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