#AF9730#AF9730

#AF9730 is a light, vivid yellow. Relative luminance 0.315; OKLCH L 67.9% C 0.122 H 95.6°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#AF9730
RGBrgb(175, 151, 48)
HSLhsl(49, 57%, 44%)
HSVhsv(49, 73%, 69%)
CMYKcmyk(0%, 13.7%, 72.6%, 31.4%)
CIE-LABlab(62.90, -2.38, 54.68)
CIE-LCHlch(62.90, 54.73, 92.49°)
OKLaboklab(67.94% -0.0119 0.1213)
OKLCHoklch(67.94% 0.122 95.6)
XYZxyz(29.2808, 31.4621, 7.3262)
Luminance0.3146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9730 #3048AF
analogous
#AF5730 #AF9730 #87AF30
triadic
#AF9730 #30AF97 #9730AF
tetradic
#AF9730 #30AF57 #3048AF #AF3087
square
#AF9730 #30AF57 #3048AF #AF3087
split-complementary
#AF9730 #3087AF #5730AF
monochromatic
#4F4416 #7F6E23 #AF9730 #CEB64E #DCCA7E

Accessibility & contrast

On white

2.88
#AF9730 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#AF9730 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9730
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9730#FFFFFF#000000##000000
##AF97301.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79420
Deuteranopia (green-blind)
#AD9B36
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9730;
/* rgb */ color: rgb(175, 151, 48);
/* oklch */ color: oklch(67.9% 0.122 95.6);
Tailwind
colors: {
  custom: {
    50: '#cbb56f',
    500: '#af9730',
    950: '#000000',
  },
}
SCSS
$custom: #af9730;
$custom-light: #cbb56f;
$custom-dark: #000000;
JSON
{
  "hex": "#af9730",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 48
  },
  "hsl": {
    "h": 48.661,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.67938,
    "c": 0.12193,
    "h": 95.6
  },
  "luminance": 0.31461
}

Semantic roles & 50–950 ramp

primary
#AF9730
secondary
#7685C4
accent
#64E048
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9730

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

Preview Lab → · Contrast checker → · Palette generator →

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