#AFA623#AFA623

#AFA623 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.1% C 0.141 H 105.3°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA623
RGBrgb(175, 166, 35)
HSLhsl(56, 67%, 41%)
HSVhsv(56, 80%, 69%)
CMYKcmyk(0%, 5.1%, 80%, 31.4%)
CIE-LABlab(66.91, -10.90, 62.93)
CIE-LCHlch(66.91, 63.87, 99.83°)
OKLaboklab(71.1% -0.0373 0.1364)
OKLCHoklch(71.1% 0.141 105.3)
XYZxyz(31.6202, 36.5090, 6.9711)
Luminance0.3651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA623 #232CAF
analogous
#AF6023 #AFA623 #72AF23
triadic
#AFA623 #23AFA6 #A623AF
tetradic
#AFA623 #23AF60 #232CAF #AF2372
square
#AFA623 #23AF60 #232CAF #AF2372
split-complementary
#AFA623 #2372AF #6023AF
monochromatic
#49450F #7C7619 #AFA623 #D7CD38 #E1DA6B

Accessibility & contrast

On white

2.53
#AFA623 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#AFA623 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA623
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA623#FFFFFF#000000##000000
##AFA6231.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A000
Deuteranopia (green-blind)
#B8A52E
Tritanopia (blue-blind)
#BD9A8E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa623;
/* rgb */ color: rgb(175, 166, 35);
/* oklch */ color: oklch(71.1% 0.141 105.3);
Tailwind
colors: {
  custom: {
    50: '#cbc06b',
    500: '#afa623',
    950: '#000000',
  },
}
SCSS
$custom: #afa623;
$custom-light: #cbc06b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa623",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 35
  },
  "hsl": {
    "h": 56.143,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.71099,
    "c": 0.14139,
    "h": 105.3
  },
  "luminance": 0.36508
}

Semantic roles & 50–950 ramp

primary
#AFA623
secondary
#666DC7
accent
#49EA3E
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA623

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

Preview Lab → · Contrast checker → · Palette generator →

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