#AFA730#AFA730

#AFA730 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.4% C 0.135 H 105.5°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA730
RGBrgb(175, 167, 48)
HSLhsl(56, 57%, 44%)
HSVhsv(56, 73%, 69%)
CMYKcmyk(0%, 4.6%, 72.6%, 31.4%)
CIE-LABlab(67.25, -10.89, 58.93)
CIE-LCHlch(67.25, 59.93, 100.47°)
OKLaboklab(71.4% -0.0361 0.1303)
OKLCHoklch(71.4% 0.135 105.5)
XYZxyz(32.0327, 36.9660, 8.2436)
Luminance0.3696 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA730 #3038AF
analogous
#AF6730 #AFA730 #77AF30
triadic
#AFA730 #30AFA7 #A730AF
tetradic
#AFA730 #30AF67 #3038AF #AF3077
square
#AFA730 #30AF67 #3038AF #AF3077
split-complementary
#AFA730 #3077AF #6730AF
monochromatic
#4F4B16 #7F7923 #AFA730 #CEC64E #DCD67E

Accessibility & contrast

On white

2.50
#AFA730 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#AFA730 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA730
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA730#FFFFFF#000000##000000
##AFA7301.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11B
Deuteranopia (green-blind)
#B9A638
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa730;
/* rgb */ color: rgb(175, 167, 48);
/* oklch */ color: oklch(71.4% 0.135 105.5);
Tailwind
colors: {
  custom: {
    50: '#cac071',
    500: '#afa730',
    950: '#000000',
  },
}
SCSS
$custom: #afa730;
$custom-light: #cac071;
$custom-dark: #000000;
JSON
{
  "hex": "#afa730",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 48
  },
  "hsl": {
    "h": 56.22,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.71395,
    "c": 0.13523,
    "h": 105.5
  },
  "luminance": 0.36965
}

Semantic roles & 50–950 ramp

primary
#AFA730
secondary
#767BC4
accent
#51E048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA730

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

Preview Lab → · Contrast checker → · Palette generator →

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