#AFA23F#AFA23F

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

Color values

HEX#AFA23F
RGBrgb(175, 162, 63)
HSLhsl(53, 47%, 47%)
HSVhsv(53, 64%, 69%)
CMYKcmyk(0%, 7.4%, 64%, 31.4%)
CIE-LABlab(65.99, -7.41, 51.56)
CIE-LCHlch(65.99, 52.09, 98.18°)
OKLaboklab(70.43% -0.0246 0.1173)
OKLCHoklch(70.43% 0.12 101.8)
XYZxyz(31.4980, 35.3148, 9.8589)
Luminance0.3531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA23F #3F4CAF
analogous
#AF6A3F #AFA23F #84AF3F
triadic
#AFA23F #3FAFA2 #A23FAF
tetradic
#AFA23F #3FAF6A #3F4CAF #AF3F84
square
#AFA23F #3FAF6A #3F4CAF #AF3F84
split-complementary
#AFA23F #3F84AF #6A3FAF
monochromatic
#554F1F #82782F #AFA23F #C7BC64 #D7CF91

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA23F#FFFFFF#000000##000000
##AFA23F1.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa23f;
/* rgb */ color: rgb(175, 162, 63);
/* oklch */ color: oklch(70.4% 0.120 101.8);
Tailwind
colors: {
  custom: {
    50: '#cabd79',
    500: '#afa23f',
    950: '#000000',
  },
}
SCSS
$custom: #afa23f;
$custom-light: #cabd79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa23f",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 63
  },
  "hsl": {
    "h": 53.036,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.7043,
    "c": 0.11985,
    "h": 101.8
  },
  "luminance": 0.35314
}

Semantic roles & 50–950 ramp

primary
#AFA23F
secondary
#878EC3
accent
#61D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA23F

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

Preview Lab → · Contrast checker → · Palette generator →

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