#AF9E38#AF9E38

#AF9E38 is a light, vivid yellow. Relative luminance 0.339; OKLCH L 69.5% C 0.122 H 99.7°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#AF9E38
RGBrgb(175, 158, 56)
HSLhsl(51, 52%, 45%)
HSVhsv(51, 68%, 69%)
CMYKcmyk(0%, 9.7%, 68%, 31.4%)
CIE-LABlab(64.85, -5.71, 53.37)
CIE-LCHlch(64.85, 53.68, 96.11°)
OKLaboklab(69.5% -0.0205 0.12)
OKLCHoklch(69.5% 0.122 99.7)
XYZxyz(30.6212, 33.8546, 8.6623)
Luminance0.3385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E38 #3849AF
analogous
#AF6338 #AF9E38 #84AF38
triadic
#AF9E38 #38AF9E #9E38AF
tetradic
#AF9E38 #38AF63 #3849AF #AF3884
square
#AF9E38 #38AF63 #3849AF #AF3884
split-complementary
#AF9E38 #3884AF #6338AF
monochromatic
#524A1A #817429 #AF9E38 #CABA5A #D9CE88

Accessibility & contrast

On white

2.70
#AF9E38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#AF9E38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E38
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E38#FFFFFF#000000##000000
##AF9E381.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9A2A
Deuteranopia (green-blind)
#B2A03E
Tritanopia (blue-blind)
#BC9389
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e38;
/* rgb */ color: rgb(175, 158, 56);
/* oklch */ color: oklch(69.5% 0.122 99.7);
Tailwind
colors: {
  custom: {
    50: '#caba74',
    500: '#af9e38',
    950: '#000000',
  },
}
SCSS
$custom: #af9e38;
$custom-light: #caba74;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e38",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 56
  },
  "hsl": {
    "h": 51.429,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69502,
    "c": 0.12176,
    "h": 99.7
  },
  "luminance": 0.33853
}

Semantic roles & 50–950 ramp

primary
#AF9E38
secondary
#8089C3
accent
#61DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9E38

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

Preview Lab → · Contrast checker → · Palette generator →

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