#AF9438#AF9438

#AF9438 is a light, moderate yellow. Relative luminance 0.306; OKLCH L 67.4% C 0.114 H 92.6°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#AF9438
RGBrgb(175, 148, 56)
HSLhsl(46, 52%, 45%)
HSVhsv(46, 68%, 69%)
CMYKcmyk(0%, 15.4%, 68%, 31.4%)
CIE-LABlab(62.15, -0.32, 50.57)
CIE-LCHlch(62.15, 50.57, 90.36°)
OKLaboklab(67.37% -0.0051 0.1141)
OKLCHoklch(67.37% 0.114 92.6)
XYZxyz(28.9844, 30.5809, 8.1167)
Luminance0.3058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9438 #3853AF
analogous
#AF5938 #AF9438 #8EAF38
triadic
#AF9438 #38AF94 #9438AF
tetradic
#AF9438 #38AF59 #3853AF #AF388E
square
#AF9438 #38AF59 #3853AF #AF388E
split-complementary
#AF9438 #388EAF #5938AF
monochromatic
#52461A #816D29 #AF9438 #CAB15A #D9C788

Accessibility & contrast

On white

2.95
#AF9438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#AF9438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9438
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9438#FFFFFF#000000##000000
##AF94381.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4922C
Deuteranopia (green-blind)
#AA9A3D
Tritanopia (blue-blind)
#BD8881
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af9438;
/* rgb */ color: rgb(175, 148, 56);
/* oklch */ color: oklch(67.4% 0.114 92.6);
Tailwind
colors: {
  custom: {
    50: '#cab373',
    500: '#af9438',
    950: '#000000',
  },
}
SCSS
$custom: #af9438;
$custom-light: #cab373;
$custom-dark: #000000;
JSON
{
  "hex": "#af9438",
  "rgb": {
    "r": 175,
    "g": 148,
    "b": 56
  },
  "hsl": {
    "h": 46.387,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.67369,
    "c": 0.1142,
    "h": 92.6
  },
  "luminance": 0.30579
}

Semantic roles & 50–950 ramp

primary
#AF9438
secondary
#808FC3
accent
#6DDB4D
background
#FCFAF7
surface
#F9F5ED
border
#D2CFC8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9438

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

Preview Lab → · Contrast checker → · Palette generator →

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