#AFB730#AFB730

#AFB730 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 74.9% C 0.151 H 112.9°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#AFB730
RGBrgb(175, 183, 48)
HSLhsl(64, 58%, 45%)
HSVhsv(64, 74%, 72%)
CMYKcmyk(4.4%, 0%, 73.8%, 28.2%)
CIE-LABlab(71.69, -19.08, 63.16)
CIE-LCHlch(71.69, 65.98, 106.81°)
OKLaboklab(74.94% -0.059 0.1393)
OKLCHoklch(74.94% 0.151 112.9)
XYZxyz(35.1473, 43.1951, 9.2817)
Luminance0.4319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB730 #3830B7
analogous
#B77C30 #AFB730 #6BB730
triadic
#AFB730 #30AFB7 #B730AF
tetradic
#AFB730 #30B77C #3830B7 #B7306B
square
#AFB730 #30B77C #3830B7 #B7306B
split-complementary
#AFB730 #306BB7 #7C30B7
monochromatic
#525617 #818723 #AFB730 #CAD252 #D9DE83

Accessibility & contrast

On white

2.18
#AFB730 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#AFB730 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB730
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB730#FFFFFF#000000##000000
##AFB7301.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE13
Deuteranopia (green-blind)
#C5B13B
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb730;
/* rgb */ color: rgb(175, 183, 48);
/* oklch */ color: oklch(74.9% 0.151 112.9);
Tailwind
colors: {
  custom: {
    50: '#cacc72',
    500: '#afb730',
    950: '#000000',
  },
}
SCSS
$custom: #afb730;
$custom-light: #cacc72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb730",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 48
  },
  "hsl": {
    "h": 63.556,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74938,
    "c": 0.15125,
    "h": 112.9
  },
  "luminance": 0.43194
}

Semantic roles & 50–950 ramp

primary
#AFB730
secondary
#807BC8
accent
#46E24F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB730

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

Preview Lab → · Contrast checker → · Palette generator →

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