#AF9E40#AF9E40

#AF9E40 is a light, moderate yellow. Relative luminance 0.339; OKLCH L 69.6% C 0.115 H 99.1°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#AF9E40
RGBrgb(175, 158, 64)
HSLhsl(51, 46%, 47%)
HSVhsv(51, 63%, 69%)
CMYKcmyk(0%, 9.7%, 63.4%, 31.4%)
CIE-LABlab(64.91, -5.21, 49.95)
CIE-LCHlch(64.91, 50.22, 95.96°)
OKLaboklab(69.58% -0.0182 0.114)
OKLCHoklch(69.58% 0.115 99.1)
XYZxyz(30.8327, 33.9392, 9.7763)
Luminance0.3394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E40 #4051AF
analogous
#AF6740 #AF9E40 #89AF40
triadic
#AF9E40 #40AF9E #9E40AF
tetradic
#AF9E40 #40AF67 #4051AF #AF4089
square
#AF9E40 #40AF67 #4051AF #AF4089
split-complementary
#AF9E40 #4089AF #6740AF
monochromatic
#554D1F #827630 #AF9E40 #C7B865 #D7CD92

Accessibility & contrast

On white

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

On black

7.79
#AF9E40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E40
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E40#FFFFFF#000000##000000
##AF9E401.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9A35
Deuteranopia (green-blind)
#B1A045
Tritanopia (blue-blind)
#BC938A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e40;
/* rgb */ color: rgb(175, 158, 64);
/* oklch */ color: oklch(69.6% 0.115 99.1);
Tailwind
colors: {
  custom: {
    50: '#caba79',
    500: '#af9e40',
    950: '#000000',
  },
}
SCSS
$custom: #af9e40;
$custom-light: #caba79;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e40",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 64
  },
  "hsl": {
    "h": 50.811,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.69577,
    "c": 0.11548,
    "h": 99.1
  },
  "luminance": 0.33938
}

Semantic roles & 50–950 ramp

primary
#AF9E40
secondary
#8891C3
accent
#66D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9E40

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

Preview Lab → · Contrast checker → · Palette generator →

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