#AF9B30#AF9B30

#AF9B30 is a light, vivid yellow. Relative luminance 0.328; OKLCH L 68.8% C 0.125 H 98.3°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#AF9B30
RGBrgb(175, 155, 48)
HSLhsl(51, 57%, 44%)
HSVhsv(51, 73%, 69%)
CMYKcmyk(0%, 11.4%, 72.6%, 31.4%)
CIE-LABlab(63.98, -4.53, 55.74)
CIE-LCHlch(63.98, 55.93, 94.65°)
OKLaboklab(68.79% -0.0181 0.1236)
OKLCHoklch(68.79% 0.125 98.3)
XYZxyz(29.9355, 32.7715, 7.5445)
Luminance0.3277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B30 #3044AF
analogous
#AF5B30 #AF9B30 #83AF30
triadic
#AF9B30 #30AF9B #9B30AF
tetradic
#AF9B30 #30AF5B #3044AF #AF3083
square
#AF9B30 #30AF5B #3044AF #AF3083
split-complementary
#AF9B30 #3083AF #5B30AF
monochromatic
#4F4616 #7F7023 #AF9B30 #CEBA4E #DCCD7E

Accessibility & contrast

On white

2.78
#AF9B30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#AF9B30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B30
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B30#FFFFFF#000000##000000
##AF9B301.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA971F
Deuteranopia (green-blind)
#B09E37
Tritanopia (blue-blind)
#BD8F86
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b30;
/* rgb */ color: rgb(175, 155, 48);
/* oklch */ color: oklch(68.8% 0.125 98.3);
Tailwind
colors: {
  custom: {
    50: '#cab86f',
    500: '#af9b30',
    950: '#000000',
  },
}
SCSS
$custom: #af9b30;
$custom-light: #cab86f;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b30",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 48
  },
  "hsl": {
    "h": 50.551,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.68792,
    "c": 0.12491,
    "h": 98.3
  },
  "luminance": 0.3277
}

Semantic roles & 50–950 ramp

primary
#AF9B30
secondary
#7683C4
accent
#60E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9B30

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

Preview Lab → · Contrast checker → · Palette generator →

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