#AF942D#AF942D

#AF942D is a light, vivid yellow. Relative luminance 0.305; OKLCH L 67.3% C 0.122 H 93.8°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#AF942D
RGBrgb(175, 148, 45)
HSLhsl(48, 59%, 43%)
HSVhsv(48, 74%, 69%)
CMYKcmyk(0%, 15.4%, 74.3%, 31.4%)
CIE-LABlab(62.07, -0.90, 55.05)
CIE-LCHlch(62.07, 55.06, 90.93°)
OKLaboklab(67.28% -0.0081 0.1215)
OKLCHoklch(67.28% 0.122 93.8)
XYZxyz(28.7443, 30.4849, 6.8523)
Luminance0.3048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF942D #2D48AF
analogous
#AF532D #AF942D #89AF2D
triadic
#AF942D #2DAF94 #942DAF
tetradic
#AF942D #2DAF53 #2D48AF #AF2D89
square
#AF942D #2DAF53 #2D48AF #AF2D89
split-complementary
#AF942D #2D89AF #532DAF
monochromatic
#4E4214 #7E6B20 #AF942D #D0B449 #DDC87A

Accessibility & contrast

On white

2.96
#AF942D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#AF942D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF942D
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF942D#FFFFFF#000000##000000
##AF942D1.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4911C
Deuteranopia (green-blind)
#AB9933
Tritanopia (blue-blind)
#BD8880
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af942d;
/* rgb */ color: rgb(175, 148, 45);
/* oklch */ color: oklch(67.3% 0.122 93.8);
Tailwind
colors: {
  custom: {
    50: '#cbb36d',
    500: '#af942d',
    950: '#000000',
  },
}
SCSS
$custom: #af942d;
$custom-light: #cbb36d;
$custom-dark: #000000;
JSON
{
  "hex": "#af942d",
  "rgb": {
    "r": 175,
    "g": 148,
    "b": 45
  },
  "hsl": {
    "h": 47.538,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.67278,
    "c": 0.12181,
    "h": 93.8
  },
  "luminance": 0.30483
}

Semantic roles & 50–950 ramp

primary
#AF942D
secondary
#7384C5
accent
#66E246
background
#FDFAF6
surface
#FAF5EC
border
#D3CFC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF942D

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

Preview Lab → · Contrast checker → · Palette generator →

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