#AF9742#AF9742

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

Color values

HEX#AF9742
RGBrgb(175, 151, 66)
HSLhsl(47, 45%, 47%)
HSVhsv(47, 62%, 69%)
CMYKcmyk(0%, 13.7%, 62.3%, 31.4%)
CIE-LABlab(63.05, -1.31, 46.98)
CIE-LCHlch(63.05, 47.00, 91.59°)
OKLaboklab(68.1% -0.0067 0.108)
OKLCHoklch(68.1% 0.108 93.5)
XYZxyz(29.7305, 31.6420, 9.6947)
Luminance0.3164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9742 #425AAF
analogous
#AF6142 #AF9742 #91AF42
triadic
#AF9742 #42AF97 #9742AF
tetradic
#AF9742 #42AF61 #425AAF #AF4291
square
#AF9742 #42AF61 #425AAF #AF4291
split-complementary
#AF9742 #4291AF #6142AF
monochromatic
#564A20 #837131 #AF9742 #C6B168 #D7C895

Accessibility & contrast

On white

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

On black

7.33
#AF9742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9742
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9742#FFFFFF#000000##000000
##AF97421.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69439
Deuteranopia (green-blind)
#AC9C46
Tritanopia (blue-blind)
#BC8C84
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9742;
/* rgb */ color: rgb(175, 151, 66);
/* oklch */ color: oklch(68.1% 0.108 93.5);
Tailwind
colors: {
  custom: {
    50: '#cab57a',
    500: '#af9742',
    950: '#000000',
  },
}
SCSS
$custom: #af9742;
$custom-light: #cab57a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9742",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 66
  },
  "hsl": {
    "h": 46.789,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.68104,
    "c": 0.10821,
    "h": 93.5
  },
  "luminance": 0.31641
}

Semantic roles & 50–950 ramp

primary
#AF9742
secondary
#8A97C2
accent
#70D553
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9742

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

Preview Lab → · Contrast checker → · Palette generator →

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