#AF9740#AF9740

#AF9740 is a light, moderate yellow. Relative luminance 0.316; OKLCH L 68.1% C 0.110 H 93.8°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#AF9740
RGBrgb(175, 151, 64)
HSLhsl(47, 46%, 47%)
HSVhsv(47, 63%, 69%)
CMYKcmyk(0%, 13.7%, 63.4%, 31.4%)
CIE-LABlab(63.03, -1.44, 47.89)
CIE-LCHlch(63.03, 47.91, 91.73°)
OKLaboklab(68.08% -0.0073 0.1097)
OKLCHoklch(68.08% 0.11 93.8)
XYZxyz(29.6726, 31.6189, 9.3896)
Luminance0.3162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9740 #4058AF
analogous
#AF6040 #AF9740 #90AF40
triadic
#AF9740 #40AF97 #9740AF
tetradic
#AF9740 #40AF60 #4058AF #AF4090
square
#AF9740 #40AF60 #4058AF #AF4090
split-complementary
#AF9740 #4090AF #6040AF
monochromatic
#554A1F #827030 #AF9740 #C7B265 #D7C892

Accessibility & contrast

On white

2.87
#AF9740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#AF9740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9740
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9740#FFFFFF#000000##000000
##AF97401.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69436
Deuteranopia (green-blind)
#AC9C44
Tritanopia (blue-blind)
#BC8C84
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9740;
/* rgb */ color: rgb(175, 151, 64);
/* oklch */ color: oklch(68.1% 0.110 93.8);
Tailwind
colors: {
  custom: {
    50: '#cab578',
    500: '#af9740',
    950: '#000000',
  },
}
SCSS
$custom: #af9740;
$custom-light: #cab578;
$custom-dark: #000000;
JSON
{
  "hex": "#af9740",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 64
  },
  "hsl": {
    "h": 47.027,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.68083,
    "c": 0.10992,
    "h": 93.8
  },
  "luminance": 0.31617
}

Semantic roles & 50–950 ramp

primary
#AF9740
secondary
#8895C3
accent
#6ED652
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9740

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

Preview Lab → · Contrast checker → · Palette generator →

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