#AFA723#AFA723

#AFA723 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.3% C 0.142 H 105.8°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA723
RGBrgb(175, 167, 35)
HSLhsl(57, 67%, 41%)
HSVhsv(57, 80%, 69%)
CMYKcmyk(0%, 4.6%, 80%, 31.4%)
CIE-LABlab(67.18, -11.43, 63.18)
CIE-LCHlch(67.18, 64.20, 100.25°)
OKLaboklab(71.32% -0.0387 0.1369)
OKLCHoklch(71.32% 0.142 105.8)
XYZxyz(31.8027, 36.8740, 7.0320)
Luminance0.3687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA723 #232BAF
analogous
#AF6123 #AFA723 #71AF23
triadic
#AFA723 #23AFA7 #A723AF
tetradic
#AFA723 #23AF61 #232BAF #AF2371
square
#AFA723 #23AF61 #232BAF #AF2371
split-complementary
#AFA723 #2371AF #6123AF
monochromatic
#49460F #7C7619 #AFA723 #D7CE38 #E1DB6B

Accessibility & contrast

On white

2.51
#AFA723 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#AFA723 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA723
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA723#FFFFFF#000000##000000
##AFA7231.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A100
Deuteranopia (green-blind)
#B9A62E
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa723;
/* rgb */ color: rgb(175, 167, 35);
/* oklch */ color: oklch(71.3% 0.142 105.8);
Tailwind
colors: {
  custom: {
    50: '#cbc06b',
    500: '#afa723',
    950: '#000000',
  },
}
SCSS
$custom: #afa723;
$custom-light: #cbc06b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa723",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 35
  },
  "hsl": {
    "h": 56.571,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.71318,
    "c": 0.1423,
    "h": 105.8
  },
  "luminance": 0.36873
}

Semantic roles & 50–950 ramp

primary
#AFA723
secondary
#666CC7
accent
#48EA3E
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA723

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

Preview Lab → · Contrast checker → · Palette generator →

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