#AFAA38#AFAA38

#AFAA38 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.1% C 0.133 H 106.8°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#AFAA38
RGBrgb(175, 170, 56)
HSLhsl(57, 52%, 45%)
HSVhsv(57, 68%, 69%)
CMYKcmyk(0%, 2.9%, 68%, 31.4%)
CIE-LABlab(68.13, -12.03, 56.73)
CIE-LCHlch(68.13, 57.99, 101.98°)
OKLaboklab(72.11% -0.0385 0.1271)
OKLCHoklch(72.11% 0.133 106.8)
XYZxyz(32.7689, 38.1500, 9.3782)
Luminance0.3815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA38 #383DAF
analogous
#AF6E38 #AFAA38 #78AF38
triadic
#AFAA38 #38AFAA #AA38AF
tetradic
#AFAA38 #38AF6E #383DAF #AF3878
square
#AFAA38 #38AF6E #383DAF #AF3878
split-complementary
#AFAA38 #3878AF #6E38AF
monochromatic
#52501A #817D29 #AFAA38 #CAC55A #D9D688

Accessibility & contrast

On white

2.43
#AFAA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#AFAA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA38
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA38#FFFFFF#000000##000000
##AFAA381.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A427
Deuteranopia (green-blind)
#BBA840
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa38;
/* rgb */ color: rgb(175, 170, 56);
/* oklch */ color: oklch(72.1% 0.133 106.8);
Tailwind
colors: {
  custom: {
    50: '#cac375',
    500: '#afaa38',
    950: '#000000',
  },
}
SCSS
$custom: #afaa38;
$custom-light: #cac375;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa38",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 56
  },
  "hsl": {
    "h": 57.479,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72113,
    "c": 0.13279,
    "h": 106.8
  },
  "luminance": 0.38149
}

Semantic roles & 50–950 ramp

primary
#AFAA38
secondary
#8082C3
accent
#53DB4D
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAA38

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

Preview Lab → · Contrast checker → · Palette generator →

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