#AF9F38#AF9F38

#AF9F38 is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.7% C 0.123 H 100.4°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#AF9F38
RGBrgb(175, 159, 56)
HSLhsl(52, 52%, 45%)
HSVhsv(52, 68%, 69%)
CMYKcmyk(0%, 9.1%, 68%, 31.4%)
CIE-LABlab(65.12, -6.25, 53.65)
CIE-LCHlch(65.12, 54.02, 96.64°)
OKLaboklab(69.72% -0.0221 0.1206)
OKLCHoklch(69.72% 0.123 100.4)
XYZxyz(30.7925, 34.1971, 8.7194)
Luminance0.3420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F38 #3848AF
analogous
#AF6438 #AF9F38 #83AF38
triadic
#AF9F38 #38AF9F #9F38AF
tetradic
#AF9F38 #38AF64 #3848AF #AF3883
square
#AF9F38 #38AF64 #3848AF #AF3883
split-complementary
#AF9F38 #3883AF #6438AF
monochromatic
#524B1A #817529 #AF9F38 #CABB5A #D9CE88

Accessibility & contrast

On white

2.68
#AF9F38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#AF9F38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F38
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F38#FFFFFF#000000##000000
##AF9F381.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B2A
Deuteranopia (green-blind)
#B2A13E
Tritanopia (blue-blind)
#BC948A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f38;
/* rgb */ color: rgb(175, 159, 56);
/* oklch */ color: oklch(69.7% 0.123 100.4);
Tailwind
colors: {
  custom: {
    50: '#cabb74',
    500: '#af9f38',
    950: '#000000',
  },
}
SCSS
$custom: #af9f38;
$custom-light: #cabb74;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f38",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 56
  },
  "hsl": {
    "h": 51.933,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69717,
    "c": 0.12261,
    "h": 100.4
  },
  "luminance": 0.34196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9F38

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

Preview Lab → · Contrast checker → · Palette generator →

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