#AFA938#AFA938

#AFA938 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.9% C 0.132 H 106.3°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA938
RGBrgb(175, 169, 56)
HSLhsl(57, 52%, 45%)
HSVhsv(57, 68%, 69%)
CMYKcmyk(0%, 3.4%, 68%, 31.4%)
CIE-LABlab(67.86, -11.51, 56.45)
CIE-LCHlch(67.86, 57.61, 101.53°)
OKLaboklab(71.89% -0.037 0.1265)
OKLCHoklch(71.89% 0.132 106.3)
XYZxyz(32.5822, 37.7765, 9.3159)
Luminance0.3777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA938 #383EAF
analogous
#AF6E38 #AFA938 #79AF38
triadic
#AFA938 #38AFA9 #A938AF
tetradic
#AFA938 #38AF6E #383EAF #AF3879
square
#AFA938 #38AF6E #383EAF #AF3879
split-complementary
#AFA938 #3879AF #6E38AF
monochromatic
#524F1A #817C29 #AFA938 #CAC55A #D9D588

Accessibility & contrast

On white

2.45
#AFA938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA938
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA938#FFFFFF#000000##000000
##AFA9381.002.458.558.55
#FFFFFF2.451.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A328
Deuteranopia (green-blind)
#BAA73F
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa938;
/* rgb */ color: rgb(175, 169, 56);
/* oklch */ color: oklch(71.9% 0.132 106.3);
Tailwind
colors: {
  custom: {
    50: '#cac275',
    500: '#afa938',
    950: '#000000',
  },
}
SCSS
$custom: #afa938;
$custom-light: #cac275;
$custom-dark: #000000;
JSON
{
  "hex": "#afa938",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 56
  },
  "hsl": {
    "h": 56.975,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.71893,
    "c": 0.13181,
    "h": 106.3
  },
  "luminance": 0.37775
}

Semantic roles & 50–950 ramp

primary
#AFA938
secondary
#8083C3
accent
#54DB4D
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA938

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

Preview Lab → · Contrast checker → · Palette generator →

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