#AF9D38#AF9D38

#AF9D38 is a light, vivid yellow. Relative luminance 0.335; OKLCH L 69.3% C 0.121 H 99.0°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#AF9D38
RGBrgb(175, 157, 56)
HSLhsl(51, 52%, 45%)
HSVhsv(51, 68%, 69%)
CMYKcmyk(0%, 10.3%, 68%, 31.4%)
CIE-LABlab(64.58, -5.18, 53.09)
CIE-LCHlch(64.58, 53.35, 95.57°)
OKLaboklab(69.29% -0.019 0.1194)
OKLCHoklch(69.29% 0.121 99)
XYZxyz(30.4513, 33.5148, 8.6056)
Luminance0.3351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D38 #384AAF
analogous
#AF6138 #AF9D38 #86AF38
triadic
#AF9D38 #38AF9D #9D38AF
tetradic
#AF9D38 #38AF61 #384AAF #AF3886
square
#AF9D38 #38AF61 #384AAF #AF3886
split-complementary
#AF9D38 #3886AF #6138AF
monochromatic
#524A1A #817329 #AF9D38 #CAB95A #D9CD88

Accessibility & contrast

On white

2.73
#AF9D38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#AF9D38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D38
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D38#FFFFFF#000000##000000
##AF9D381.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC992B
Deuteranopia (green-blind)
#B19F3E
Tritanopia (blue-blind)
#BC9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9d38;
/* rgb */ color: rgb(175, 157, 56);
/* oklch */ color: oklch(69.3% 0.121 99.0);
Tailwind
colors: {
  custom: {
    50: '#cab974',
    500: '#af9d38',
    950: '#000000',
  },
}
SCSS
$custom: #af9d38;
$custom-light: #cab974;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d38",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 56
  },
  "hsl": {
    "h": 50.924,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69287,
    "c": 0.12094,
    "h": 99
  },
  "luminance": 0.33513
}

Semantic roles & 50–950 ramp

primary
#AF9D38
secondary
#808AC3
accent
#62DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9D38

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

Preview Lab → · Contrast checker → · Palette generator →

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