#AFA326#AFA326

#AFA326 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.137 H 103.6°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#AFA326
RGBrgb(175, 163, 38)
HSLhsl(55, 64%, 42%)
HSVhsv(55, 78%, 69%)
CMYKcmyk(0%, 6.9%, 78.3%, 31.4%)
CIE-LABlab(66.10, -9.22, 61.29)
CIE-LCHlch(66.10, 61.98, 98.56°)
OKLaboklab(70.46% -0.0323 0.1335)
OKLCHoklch(70.46% 0.137 103.6)
XYZxyz(31.1277, 35.4496, 7.0362)
Luminance0.3545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA326 #2632AF
analogous
#AF5F26 #AFA326 #76AF26
triadic
#AFA326 #26AFA3 #A326AF
tetradic
#AFA326 #26AF5F #2632AF #AF2676
square
#AFA326 #26AF5F #2632AF #AF2676
split-complementary
#AFA326 #2676AF #5F26AF
monochromatic
#4A4510 #7D741B #AFA326 #D5C83D #E0D670

Accessibility & contrast

On white

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

On black

8.09
#AFA326 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA326
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA326#FFFFFF#000000##000000
##AFA3261.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D04
Deuteranopia (green-blind)
#B6A330
Tritanopia (blue-blind)
#BD978C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa326;
/* rgb */ color: rgb(175, 163, 38);
/* oklch */ color: oklch(70.5% 0.137 103.6);
Tailwind
colors: {
  custom: {
    50: '#cbbd6b',
    500: '#afa326',
    950: '#000000',
  },
}
SCSS
$custom: #afa326;
$custom-light: #cbbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa326",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 38
  },
  "hsl": {
    "h": 54.745,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.70459,
    "c": 0.13731,
    "h": 103.6
  },
  "luminance": 0.35448
}

Semantic roles & 50–950 ramp

primary
#AFA326
secondary
#6A72C7
accent
#4FE740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA326

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

Preview Lab → · Contrast checker → · Palette generator →

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